I have 1 model which is used by 2 controllers - 1 by normal user and 1 by admin user. New/create, edit/update actions are the same in both controllers. I have a shared view which is used by all of the actions but the problem is with form_for in that shared view: For normal user I would have to use:
form_for @my_model, do |f|
For admin I would have to use:
form_for [:admin, @my_model] do |f|
How can I reuse the view with 2 controllers? Maybe there is a better way of designing this?