Results 1 to 5 of 5
Thread: How does f.submit work?
Jul 4, 2008, 21:16 #1
- Join Date
- Jun 2007
- 0 Post(s)
- 0 Thread(s)
How does f.submit work?
I'm learning rails with Agile Web Development with Rails book. Right now I'm doing example from chapter 11 where they create interface for adding new users. I wrote all code exactly as it is in the book. However, I'm having a problem -- once I hit "Add User" button, the page is just redirected to the list of users and the user is not actually added. I'm trying to diagnose the problem. The code they have for the button is
<%= f.submit "Add User" , :class => "submit" %>
<input class="submit" id="user_submit" name="commit" type="submit" value="Add User" />
Any feedback would be appreciated,