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.