开发者

installing jquery in ruby on rails, help

okay im still learning ruby on rails and it includes prototype when you do rails new but i use jquery, Ive been looking around and i saw people talking about https://github.com/indirect/jquery-rails and to do some gem 'jquery-rails' and then some other stuff. Im not sure how to开发者_运维技巧 do any of this, can someone give me a step by step guide on how to install jquery on rails? im on windows. thank you!

ive seen 'tutorials' saying

gem 'jquery-rails'
bundle 
rails generate jquery:include

i've tried typing the gem command and it doesnt do anything, so i cant get passed that.


You need to place line gem 'jquery-rails' in your Gemfile, not execute on the command line.

By the way, rails versions 3.1 (not yet released, but can be installed with gem install rails --pre) includes jQuery by default instead of prototype.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜