0 votes
in Ruby by
Which statement correctly describes a difference between the form helper methods form_tag and form_for?

 a. The form_tag method is for basic forms, while the form_for method is for multipart forms that include file uploads.

 b. The form_tag method is for HTTP requests, while the form_for method is for AJAX requests.

 c. The form_tag method typically expects a URL as its first argument, while the form_for method typically expects a model object.

 d. The form_tag method is evaluated at runtime, while the form_for method is precompiled and cached.

1 Answer

0 votes
by

Which statement correctly describes a difference between the form helper methods form_tag and form_for?

Correct answer is :-  The form_tag method typically expects a URL as its first argument, while the form_for method typically expects a model object.

Related questions

0 votes
asked Sep 2, 2022 in Ruby by DavidAnderson
0 votes
asked Nov 7, 2019 in Agile by sachatouille
...