user2728203
user2728203

Reputation:

Contents inside form_tag is not getting displayed in ROR

I am creating a simple app in ROR , I find that what ever is given insidem my

<% form_tag({:action => :formcheck}, :multipart => true ) do %>
 .
 .
 .
<% end %>

but when I close the form_tag immediately everything inside the form is getting displayed correctly .

 <% form_tag({:action => :formcheck}, :multipart => true ) do %>
 <% end %>

I just need to know why the contents are not getting displaced .

I am using Rails version 4.0.0

Upvotes: 1

Views: 83

Answers (2)

Rajarshi Das
Rajarshi Das

Reputation: 12320

Please look into this http://edgeguides.rubyonrails.org/form_helpers.html

 <%= form_tag({:action => :formcheck}, :multipart => true ) do %>
  Form contents
 <% end %>

Upvotes: 0

Thaha kp
Thaha kp

Reputation: 3709

Put '='

<%= form_tag({:action => :formcheck}, :multipart => true ) do %>

Upvotes: 1

Related Questions