You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
Rails, Prototype, and JQuery in Harmony (or how to replace Prototype with JQuery) It has become common practice to use JQuery as the javascript library of choice for Ruby on Rails applications. If you have a Rails app already using Prototype, it usually isn't feasible to replace it in one swoop. And sometimes, you just simply need both to work at the same time. Whether you want to use both in unis
環境 Windows Vista Ultimate SP2 Ruby 1.9.2p0 (2010-08-18) [i386-mingw32] DevKit-tdm-32-4.5.1-20101214-1400-sfx RubyGems 1.3.7 Rails 3.0.3 インストール 以下はBundlerがインストール済の前提です。インストールされていない場合はコマンドラインから (プロジェクトルート)>gem install bundler でインストールします。 Gemfile 以下の1行を追記します。 gem 'jquery-rails' コマンドラインから (プロジェクトルート)>bundle install を実行。 (プロジェクトルート)>rails g を実行するとjquery:installが追加されているので、 (プロジェクトルート)>rails g jquery:ins
generates an application with jQuery. The -j option of the generator lets you choose Prototype and Scriptaculous instead: Such an application does not have RJS yet available though. From now on prototype-rails is needed for RJS, see below. Upgrading Applications Using No RJS Existing applications using no RJS should remove any references to ActionView::Base.debug_rjs in the project. Typically that
Railsでアプリケーションを作成した際のデフォルトJS(AJAX)ライブラリはprototype.jsとscript.aculo.us。 しかし、昨今のajax開発にはjQueryを使う人が多いんじゃないかと。 っつーワケで、今更ながらRailsでjQueryを使ってみましょう。 今回は以下のサイトを参考にしました jQueryをRailsで·jRails MOONGIFT RailsにjQueryの導入 とは言ってもプラグイン"jRails"をインスコするだけ ruby script/plugin install http://ennerchi.googlecode.com/svn/trunk/plugins/jrails その後、headタグ内に <%= javascript_include_tag :defaults %> って記述してあげると 上のように展開され、デフォルトのjs
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く