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

what are benefits of using active record as opposed to raw sql queries?

486


what is active record?

531


What is Dynamic finders ?

505


What are gemsets in rails?

463


How you run your Rails Application without creating database ?

461






Explain model in rails?

470


What are the different filters used in ruby on rails?

425


How many types of relationships does a model has?

473


what are the limits of Ruby on Rails?

518


What is the rail console?

490


What are naming conventions?

472


What do you mean by render and redirect_to?

485


Are there any disadvantages of ruby on rails? If yes, mention them.

474


How are observers and callbacks different from each other?

416


Explain me what is the difference between concern and application_controller.rb in ruby on rails?

451