- Is there a way, in Rails, to get the correct url for a form when the model doesn't match the controller?
- = form_for(@user, :url => @user.new_record? ? managers_url : manager_url(@user))
- class Manager < User
- default_scope where(:role => "manager")
- end