Howdy, I’m new to rails and I’m learning form Agile Web Dev with Rails.
It seems all of the examples that use form_for use it in situations
where the action first creates a new object before doing a
If I’m in a situation where I’m managing Roles, Rights, and assignments
of rights to roles, I may want to have one little form with a text field
and a “Create Role” button, another little form with a text field and a
“Create Right” button, etc… in those situations is there a use for a
form_for at all? An action can’t presuppose that I’m going to be using
either or, so should I just create separate actions to invoke from the
separate forms (ex ‘create_new_role’, ‘create_new_right’, etc) using
form_tag and then redirect :back?
(Sorry, on my previous post I accidentally said “form_tag” in the topic
and it doesn’t let me edit… so I reposted.)