Skip to content

Commit 531c369

Browse files
committed
Use Rails 8 names for view helpers (no underscore)
1 parent 1ef42f4 commit 531c369

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

demo/app/views/bootstrap/form.html.erb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<%= form.email_field :email, placeholder: "Enter Email", label: "Email address", help: "We'll never share your email with anyone else" %>
66
<%= form.password_field :password, placeholder: "Password" %>
77
<%= form.select :status, [['activated', 1], ['blocked', 2]], prompt: "Please Select" %>
8-
<%= form.text_area :comments %>
9-
<%= form.check_box :terms, label: "Agree to Terms" %>
10-
<%= form.collection_check_boxes :checkboxes, @collection, :id, :street %>
8+
<%= form.textarea :comments %>
9+
<%= form.checkbox :terms, label: "Agree to Terms" %>
10+
<%= form.collection_checkboxes :checkboxes, @collection, :id, :street %>
1111
<%= form.collection_radio_buttons :radio_buttons, @collection, :id, :street %>
1212
<%= form.file_field :file %>
1313
<%= form.datetime_select :created_at, include_blank: true %>
@@ -23,7 +23,7 @@
2323
<%= form.alert_message "This is an alert" %>
2424
<%= form.error_summary %>
2525
<%= form.email_field :email, placeholder: "Enter Email", label: "Email address", help: "We'll never share your email with anyone else" %>
26-
<%= form.collection_check_boxes :misc, @collection, :id, :street %>
26+
<%= form.collection_checkboxes :misc, @collection, :id, :street %>
2727
<%= form.submit %>
2828
<% end %>
2929
<% end %>
@@ -34,8 +34,8 @@
3434
<%= bootstrap_form_for @user, layout: :inline do |form| %>
3535
<%= form.email_field :email, placeholder: "Enter Email", label: "Email address", help: "We'll never share your email with anyone else" %>
3636
<%= form.password_field :password, placeholder: "Password" %>
37-
<%= form.check_box :terms, label: "Agree to Terms" %>
38-
<%= form.collection_check_boxes :misc, @collection, :id, :street %>
37+
<%= form.checkbox :terms, label: "Agree to Terms" %>
38+
<%= form.collection_checkboxes :misc, @collection, :id, :street %>
3939
<%= form.submit %>
4040
<% end %>
4141
<% end %>
@@ -46,9 +46,9 @@
4646
<%= bootstrap_form_for @user, url: "/" do |form| %>
4747
<%= form.email_field :email, placeholder: "Enter Email", label: "Email address", help: "We'll never share your email with anyone else" %>
4848
<%= form.password_field :password, placeholder: "Password" %>
49-
<%= form.check_box :terms, label: "Agree to Terms" %>
50-
<%= form.collection_check_boxes :misc, @collection, :id, :street %>
51-
<%= form.rich_text_area(:life_story) %>
49+
<%= form.checkbox :terms, label: "Agree to Terms" %>
50+
<%= form.collection_checkboxes :misc, @collection, :id, :street %>
51+
<%= form.rich_textarea(:life_story) %>
5252
<%= form.submit %>
5353
<% end %>
5454
<% end %>
@@ -60,7 +60,7 @@
6060
<%= form.email_field :email, placeholder: "Enter Email", label: "Email address", help: "We'll never share your email with anyone else", floating: true %>
6161
<%= form.password_field :password, placeholder: "Password", floating: true %>
6262
<%= form.text_field :misc, floating: true %>
63-
<%= form.text_area :comments, floating: true %>
63+
<%= form.textarea :comments, floating: true %>
6464
<%= form.select :status, [["Active", 1], ["Inactive", 2]], include_blank: "Select a value", floating: true %>
6565
<%= form.submit %>
6666
<% end %>

0 commit comments

Comments
 (0)