Tidy Controllers

I'm currently working on tidying up some code, I realized that the
controller had a lot of Model logic in it, so naturally I moved it out
to the corresponding models.

But there's also a lot of AJAX calls happening in the controller as
well. Is there any recommended way to keep it tidy? i.e. best practices
and what not.


What do you mean AJAX calls happening in the controller? If you mean
something like this:

render :update do |page|
  page.blah blah
  page.blah blah

then that should be moved to the views folder under the 'action.js.rjs'
name and then used like this

respond_to |format|