Hi,
form_tag is mainly used where you don’t need to attach a form to a model instance. If you need model based form you need to use form_for.
You need to pass css class as a parameter to form_tag. But it should be done as below.
= form_tag({:url => ''},:class => 'form-horizontal') do |f|
Thank You,
Uma Mahesh.
No comments:
Post a Comment