Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

form feild rails helper

<%= form_tag("/search", method: "get") do %>
  <%= label_tag(:q, "Search for:") %>
  <%= text_field_tag(:q) %>
  <%= submit_tag("Search") %>
<% end %>
Source by guides.rubyonrails.org #
 
PREVIOUS NEXT
Tagged: #form #feild #rails #helper
ADD COMMENT
Topic
Name
1+9 =