Commander Johnson wrote in post #958574:
> Hello,
>
> I have a piece of controller code that needs to be dried up. The part
> between the big comment blocks (####) is the only (!) part of the code
> that
> needs to change for various methods.
That method is far too long to be in the controller. Most of this
should be abstracted into models.
Better yet, just rip it all out and install Authlogic or Devise. There
is absolutely no reason to write your own authentication code in Rails
when excellent plugins already exist.
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org
--
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.
No comments:
Post a Comment