Hi This is a general question.What is the differnece between these ?Why I am asking such a question is i am using will_paginate pluggin..Now it is available as gem..So is there any performance (stability and speed of execution) difference? Thanks in advance Sijo -- 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 -~----------~----~----~----~------~----~------~--~---
On 20 May 2008, at 10:59, Sijo Kg wrote:> > Hi > This is a general question.What is the differnece between these > ?Why I am asking such a question is i am using will_paginate > pluggin..Now it is available as gem..So is there any performance > (stability and speed of execution) difference? >plugins are rails specific, gems are a general ruby way of distributing code. gems have the advantage of already having a lot of stuff in place for dependencies versionning etc... rails does some special things to plugins, eg loading them at a well defined point in the boot process, evaling init.rb etc... (rails 2.1 will load plugins from gems too). Fred> Thanks in advance > Sijo > -- > 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 -~----------~----~----~----~------~----~------~--~---
My problem is that I waffle back -n- forth over what is best. Sometimes I think gems because they are the ruby way, and are so well supported (as Fred said). Othertimes I think: plugins so I can have all the project code in the project. But then the projects get huge. And sometimes updating a plugin isn''t as straightforward. And the plugin management keeps change (used to by SVN, now it''s all GIT... what''s next?). So I dunno. I like that with a plugin you don''t have to add any code (no "require" line), but then again, it''s only one line. Hmmm... conundrum -Danimal On May 20, 4:03 am, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 20 May 2008, at 10:59, Sijo Kg wrote: > > > > > Hi > > This is a general question.What is the differnece between these > > ?Why I am asking such a question is i am using will_paginate > > pluggin..Now it is available as gem..So is there any performance > > (stability and speed of execution) difference? > > plugins are rails specific, gems are a general ruby way of > distributing code. gems have the advantage of already having a lot of > stuff in place for dependencies versionning etc... > rails does some special things to plugins, eg loading them at a well > defined point in the boot process, evaling init.rb etc... (rails 2.1 > will load plugins from gems too). > > Fred > > > Thanks in advance > > Sijo > > -- > > Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---
Hi Thanks for the reply Sijo -- 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 -~----------~----~----~----~------~----~------~--~---