If you have lots of well-factored private methods in your controller,
they''re good candidates to be moved into a model class or some other
class. My buddy, Zach Dennis, put together a nice tutorial for
RailsConf entitled, "Refactoring Your Rails Application." It was
well-received. More info here:
http://continuousthinking.com/2008/6/3/refactoring-your-rails-application-tutorial-content
Craig
On Tue, Jun 17, 2008 at 6:24 PM, Greg Lazarev
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
> Hi all,
>
> I''ve got a Ruby on Rails application where I render a lot of RJS
stuff
> onto a page. Because of this I''ve kept all the logic inside pretty
much
> one controller.
> This controller is now pretty big with lots of functions. I was
> wondering what is the best way to refactor it?
>
> I was thinking about moving some methods into a helper module, but it
> seems that helpers are for views only. Can a method even render an RJS
> file?
> What else can I do?
>
> Thanks.
> --
> 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
-~----------~----~----~----~------~----~------~--~---