[Rails] Re: Where put require
David Kahn wrote in post #969813:
> On Tue, Dec 21, 2010 at 9:51 AM, Paul Bergstrom
> <lists@ruby-forum.com>wrote:
>
>> Where do I put e g require 'will_paginate' in Rails 3 environment?
>>
>
> Are you using the gem? If the gem, just include it in the gemfile and
> you
> should be good:
>
> gem 'will_paginate', :git =>
> 'git://github.com/mislav/will_paginate.git',
> :branch => 'rails3'
You where more right than I thought. But you only have to add:
gem 'will_paginate'
Not running bundle install will then be the same as 'require'. I think.
--
Posted via http://www.ruby-forum.com/.
--
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