yaaa your right,Tim Thanks, Sai
On Tue, Oct 4, 2011 at 5:18 PM, Tim Shaffer <[email protected]> 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

