Answers for "form for"

2

form feild rails helper

<%= form_tag("/search", method: "get") do %>
  <%= label_tag(:q, "Search for:") %>
  <%= text_field_tag(:q) %>
  <%= submit_tag("Search") %>
<% end %>
Posted by: Guest on January-19-2020
0

class on form_for

= form_for @user, html: {class: 'x', data: { bar: 'baz' } } do |f|
Posted by: Guest on July-20-2020

Browse Popular Code Answers by Language