I want to create a user and I have written the below code in new.rhtml file which is present in /app/views/user folder
<%= start_form_tag( {:action => 'new'}, {:class => 'appform'}) %>
<label>User Name:<input type="text" name="user[login]" /></label>
<input type="submit" name="create" value="Create" />
<%= link_if_authorized submit_tag('Cancel'), {:action => 'list'} %>
<%= link_if_authorized submit_tag('User List'), {:action => 'list'} %>
<%= end_form_tag %>
This code is working fine on Firefox but its not working on IE.
What problem I am facing on IE is that when I am clicking on Create button I am able to create user but if I am clicking on Cancel or User List button it's not redirecting me to the list page(<%= link_if_authorized submit_tag('Cancel'), {:action => 'list'} %>) but its asking me to enter user name that means it's calling the new function(<%= start_form_tag( {:action => 'new'}, {:class => 'appform'}) %>) not list function(<%= link_if_authorized submit_tag('Cancel'), {:action => 'list'} %>).
Any help would be aprecciated.
~D
2007-11-03 06:09 AM
WebsiteBlog