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| %> <p> Title:<br /> <%= f.text_field :title %> </p> <p> price:<br /> <%= f.text_field :price %> </p> <p>Location:<br/> <%=f.text_field:location%> </p> <p>Description:<br/> <%=f.text_area:description%> </p> <p>Email:<br/> <%=f.text_field:email%> </p> <p> <%=submit_tag%> </p> <%end%> and controller is an attechment it''s urgent thanks Attachments: http://www.ruby-forum.com/attachment/1848/classified_controller.rb -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---