What i’m trying to get working is I have a controller called
“permissions” and a view “permissions.rhtml”. This view has a hidden div
that contains a form for adding new roles. Its just a single textfield.
Also on the page I have a dropdown list of roles and then underneath
that a div that contains a list of permissions for the role selected in
the dropdown. I have a link that when clicked makes the hidden form div
What I would like is for the form to submit via AJAX to a new_role
controller method. Any errors would be highlighted in my
“error_messages_for ‘role’” call at the top of the permissions.rhtml
file. When it has submitted correctly the dropdown list would be updated
with the new selection.
What I have got so far is that the page wants to show a “new_form” page?