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/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> [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/. > > --~--~---------~--~----~------------~-------~--~----~ > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > 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 > -~----------~----~----~----~------~----~------~--~--- >-- jan=callcc{|jan|jan};jan.call(jan)
http://gemsonrails.rubyforge.org - Great for freezing gems to vendor for ease of deployment to production. On Sun, Apr 20, 2008 at 7:49 AM, Xie Hanjian <jan.h.xie-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> [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/. > > > > > > > > -- > jan=callcc{|jan|jan};jan.call(jan) >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---