Posted By

cliffbraton on 08/12/12


Tagged

form ajax rails erb


Versions (?)

Rails Ajax Search Form Using ERB


 / Published in: Rails
 

URL: http://railscasts.com/episodes/205-unobtrusive-javascript?view=asciicast

= Rails Ajax Search Form Using ERB * action * name * text

  1. <% form_tag $1, :method => :get, :remote => true do %>
  2. <p>
  3. <%= text_field_tag :$2, params[:$2] %>
  4. <%= submit_tag "$3", :name => nil %>
  5. </p>
  6. <% end %>

Report this snippet  

You need to login to post a comment.