"You should switch to using the gem:
gem install will_paginate
After that, you can remove the plugin from your application and add
a simple require to the end of config/environment.rb:
require 'will_paginate'"
I am want to reuse code and am trying to understand the advantages of
using a gem vs a plugin. I thought the "rails way" is to use plugins
but now that I see will_paginate is using a gem, I am trying to
understand what advantages gem distributions have for use in rails
projects?
Thank you,
John
--
Posted via http://www.ruby-forum.com/.
Thanks
Jan
* John Honovich <rails-mai...@andreas-s.net> [2008-04-19 21:01:06 +0200]:
> --~--~---------~--~----~------------~-------~--~----~
> 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 rubyonra...@googlegroups.com
> To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
> -~----------~----~----~----~------~----~------~--~---
>
--
jan=callcc{|jan|jan};jan.call(jan)
On Sun, Apr 20, 2008 at 7:49 AM, Xie Hanjian <jan....@gmail.com> wrote:
> Same question here. I think plugin is better because it's 'freezed' in
> your code base so easier to deploy to production environment. What's
> the advantage of using gem?
>
> Thanks
> Jan
>
> * John Honovich <rails-mai...@andreas-s.net> [2008-04-19 21:01:06 +0200]:
>
>
>
> >
> > I noticed that will_paginate is now being distributed as a plugin. In
> > the readme, it states:
> >
> > "You should switch to using the gem:
> >
> > gem install will_paginate
> >
> > After that, you can remove the plugin from your application and add
> > a simple require to the end of config/environment.rb:
> >
> > require 'will_paginate'"
> >
> >
> > I am want to reuse code and am trying to understand the advantages of
> > using a gem vs a plugin. I thought the "rails way" is to use plugins
> > but now that I see will_paginate is using a gem, I am trying to
> > understand what advantages gem distributions have for use in rails
> > projects?
> >
> > Thank you,
> >
> > John
> > --
> > Posted via http://www.ruby-forum.com/.
> >
> > > >
>