difference between form_for and form_tag

Answer Posted / saravanan

The difference between the two is that form_tag just outputs
a <form>tag , It doesn't relies on activerecord object

and form_for gives you a means of accessing some wrapped object.

Is This Answer Correct ?    9 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

At is cross-site request forgery (csrf)?

704


difference between member routes and collection routes ?

708


Tell me what is the difference between the observers and callbacks in ruby on rails?

635


Explain valid and invalid in rails?

625


Do you know what is sweeper in rails?

617


What are models in rails?

620


what is the function of garbage collection in Ruby on Rails?

657


If you want to set up a one-to-one relationship between two models, you'll need to add belongs_to to one, and has_one to the other. How do you know which is which?

612


What role do sub-directory app/helpers and app/controllers play?

640


Am Fresher ..,i dont know seven controller methods.am searching in google .but am not getting .help me

2032


what is rails caching?

686


Do you know what is cross-site request forgery (csrf) and how rails is protected against it?

612


how you can create a controller for subject?

678


What is rails migration? What can it do?

624


What is rails script? Name some of them?

659