RailsCasts Pro episodes are now free!

Learn more or hide this

Peeyush's Profile

GitHub User: peeyushsingla

Comments by Peeyush

Avatar

I new to rails. I don't know if it was possible to use form_tag in view without loud erb tags in earlier or not. But in rails 4 it is not working so code we need to write for this is :-

<%= form_tag('/products', method: :get) do %>

<%= text_field_tag :search %>
<%= submit_tag "search" %>

<% end %>

Happy learning :)