I have controllers with multiple fucntions per action depending on
that they are called from different forms and views.
For example a controller shows a place on a map, but depending on if
the place is selected from a meny or from an autocomplete field or
from some associated model that belongs to place  etc I end up with a
fat show action with many cases that is controlled by a :mode flag
I would like to refactor that fat controller to a skinny one,
Should I divide the show action into many different actions, but the
controller will then be as fat as before ?
Should I create a new controller, but then I have two controllers that
shows places on a map, and that seems not very DRY ?
Is there any other solution ?

Appriciate any advices !

Hans

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to