Welcome to Working With Rails


Discussion Forums

Discuss all things Ruby on Rails with perhaps the web's most vibrant group of Ruby on Rails enthusiasts.
creating a form in ruby on rails
2 Posts
creating a form in ruby on rails

so instead of form_for, u can use form_tag

and for text_field use text_field_tag, which does not have relation with database as u mentioned earlier.

refer this link for more api on rails http://apidock.com/rails/ActionView/Helpers/FormTagHelper/text_field_tag

hi i checked many articles, tutorials but still failed to create a working form. i want to create a form which has some textboxes n dropdowns and even checkboxes. this form shud be connected to the database. im using rails 3.0.3 n mysql 5.0 and ruby 1.9.2.

can anyone here tell me the exact method to start working on forms..


salim mandrekar

2 Posts
Login to add your message