yaaa your right,Tim

Thanks,
Sai
On Tue, Oct 4, 2011 at 5:18 PM, Tim Shaffer wrote:

If he is using Rails 3.1 it's not necessary to manually include the jQuery
library using a <script> tag. It's also not necessary to manually include
application.js like he is doing.

It's better to use the asset pipeline.

Make sure your Gemfile contains the following line:

gem 'jquery-rails'

Also make sure your app/assets/application.js includes the following line:

//= require jquery

And then when you use the following helper, jquery will be automagically
included:

stylesheet_link_tag "application"

Check the guide on the Asset Pipeline for lots more information:

http://guides.rubyonrails.org/asset_pipeline.html

--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/ebVLSWCEfwgJ.

To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 4 | next ›
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedOct 4, '11 at 5:17a
activeOct 4, '11 at 6:23p
posts4
users3
websiterubyonrails.org
irc#RubyOnRails

People

Translate

site design / logo © 2022 Grokbase