On Mon, Feb 20, 2006, Eric Wilhelm wrote:
> What am I missing here?  These both claim to be "generators", which (to 
> me) says that they are going to generate some code that I then have to 
> change to suit my needs.  I thought plugin meant something more 
> modular.

In the case of the SLHG, it's a gem that you install which you can then
generate controller and view code from.  It also sticks some glue code
into lib.  It's not a plugin.

acts_as_authenticated is, however, a plugin.  It keeps the heavy logic
in the plugin code while allowing you to generate views to suit your
needs.  IIRC, it doesn't generate controllers, only injects its own
methods in when you call acts_as_authenticated in your existing
controller.

That's pretty much how most of the Rails plugins work.  That way when
they find a bug they can fix it without impacting your code overmuch.
Now granted, if it changes the way the view code interacts with the
plugin, you're going to have to do some tweaks, but most of the time
that's not the case.

Ben
_______________________________________________
PDXRuby mailing list
[email protected]
IRC: #pdx.rb on irc.freenode.net
http://lists.pdxruby.org/mailman/listinfo/pdxruby

Reply via email to