I'm slightly lost in Rails 3.2. I've used to create skinny controllers in Padrino using methods like this:
15 post :task, :provides => :js do
16 result = execute(params)
17 render "home/task"
18 end
Some methods does not exactly interacts with a model. In Rails 3.2, I cannot use helpers in controllers to make them clean (like Rails 2.x or Padrino). I've created a few methods like this one:
10 def show
11 @server = server_details
12 respond_with(@server) if request_match_server_address?
13 end
But moved code from ServersController to ApplicationController, assuming it will be temporarily, and now application_controller is ugly and biggger (sure with three g's).
How can I make my controllers beauty? Where is the right place to put methods like server_details?