[Rails] Re: Where put require
If you want to require things by yourself:
Gemfile:
gem 'will_paginate', :require => nil
Then bundler won't automatically require the library. It will just set
proper load path to make sure the the right version of will_paginete
will be loaded.
You might want to add require 'will_paginate' at the bottom of
application.rb. The library will be availible in the application and
rake tasks.
I do not recommend it however.
Robert Pankowecki
http://robert.pankowecki.pl
--
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home