Submit form in database

Hi I created A folder book and created a database mysql.now I create a
form new.rhtml.now I am running it it is not submitting data in database
can u tell me what is problem what should I chang
this is my new.rhtml file

<% form_for :classified do |f| %>

Title:
<%= f.text_field :title %>

price:
<%= f.text_field :price %>

Location:
<%=f.text_field:location%>

Description:
<%=f.text_area:description%>

Email:
<%=f.text_field:email%>

<%=submit_tag%>

<%end%> and controller is an attechment it's urgent thanks

the form code looks ok.
maybe the problem is in the routing or the controller.
could be the model too, if you use validations that may fail.

does the action in the controller get called?
does it get the params with form data?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs