Techable サイト閉鎖のお知らせ 長らくのご利用、誠にありがとうございました。 当サイトは2024年12月31日をもちまして閉鎖いたしました。 これまでのご支援に心より感謝申し上げます。

I was trying to use underscore.js templates for templating in a rails 2.3 app which does not have jammit as an asset packager. Here is the simple Template: <script type="text/template" id="q-template"> <div class="current-body"> <span class="q-index"><%= title %></span> <span class-"q-text"><%= body %></span> </div> </script> Rails tries to parse these as erb variables and throws an ArgumentError.
Ost.io ("open-source talks") is a forum for open-source projects and the best place for discussing project stuff with other users. It is tightly integrated with GitHub. The main ostio mission is to replace mailing lists. Ost.io apps are TodoMVC-like set of example applications, which hopes to offer more complex apps. We think example app should be: Real-world. Ost.io support forum will be self-hos
Backbone側をあまりゴリゴリといじらず、 設定だけ書いておけばAjax出来る状態にしたいので、Rails側を調整していきます。 APIにアクセスする際に拡張子を省略 Backbone.Syncのデフォルトだと、 Ajaxの叩き先がGET /[name]sとなったりPOST /[name]s等になっており、 scaffoldしたままのRailsのコントローラでは、拡張子を指定しないとレスポンスが返って来ません。 どちらかを修正すれば済むので、今回はRails側を修正します。 まず、Web APIが返すレスポンスのフォーマットは、 respond_doブロックの中に入っているformat.*という指定で決まります。 format.*がアクセスする際の拡張子、 render *がレスポンスとして返されるフォーマットです。 scaffoldされたコードは、こんな感じになっていると思います。
An opinionated guide to modern, modular, component-based approach to handling your presentation logic in Rails that does not depend on any frontend framework. Follow our three-part tutorial to learn the bare minimum of up-to-date frontend techniques by example and finally make sense of it all. New! This article was updated in July 2019 to follow the latest developments in frontend and support most
These days web assets such as JS and CSS aren’t simple text files. Instead, they’re typically minified or come from a complex build process involving compiling or transpiling. For example, CSS can be generated from a SASS file. JS can be compiled from ES6 using Babel. These toolchains make working with assets easier for developers, and make following best practices such as minification much easier
概要 Wantedlyが内部向けに行なっている勉強会に15名限定でご招待。 Railsアプリケーションに、Reactを組み合わせる方法は色々あります。 Wantedlyでは、これまで様々なフロントエンドアーキテクチャを試してきました。 さらに生産性を上げ、高いUXを実現するために新しいアーキテクチャを導入することにしました。 新しいアーキテクチャでは、 hypernova による SSR を導入しました。 React SSR と Rails の組み合わせをハンズオン形式でご紹介します! 対象 Railsアプリケーションに、Reactを組み合わせて使いたい人 この速習会でできるようになること 以下の技術をハンズオン形式で速習します。 React + Railsを組み合わせを理解する Server-side Rendering hypernova SSRに適したRESTful APIの作り方
Webpacker 3.0: No separate process needed, less config generated We’ve just made it even easier to use Webpack with Rails with this third major release of Webpacker. The two big changes are that a separate process is no longer needed in development and that the vast majority of the config now lives in the Webpacker npm package, so your config/ directory stays clean and updates are much easier. We
マネーフォワード Pay for Businessのフロントエンド / Money Forward Pay for Business Frontend
React apps give us incredible power in the browser, and with the react_on_rails gem from the folks at ShakaCode, we now have an easy way to use React inside of our new and existing Rails apps. In a previous article, I talked about how to get up and running with React in your Rails app. In this article, we are going to talk about doing server rendering with our React components inside of Rails. An
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く