@@ -102,9 +102,9 @@ For more information on using asset helpers, check out the guide for
102
102
Form helpers are the 'standard' form tag helpers you would come to expect when building forms. A simple
103
103
example of constructing a non-object form would be:
104
104
105
- - form_tag '/destroy', :class => 'destroy-form', :method => 'delete' do
105
+ = form_tag '/destroy', :class => 'destroy-form', :method => 'delete' do
106
106
= flash_tag(:notice)
107
- - field_set_tag do
107
+ = field_set_tag do
108
108
%p
109
109
= label_tag :username, :class => 'first'
110
110
= text_field_tag :username, :value => params[:username]
@@ -116,7 +116,7 @@ example of constructing a non-object form would be:
116
116
= select_tag :strategy, :options => ['delete', 'destroy'], :selected => 'delete'
117
117
%p
118
118
= check_box_tag :confirm_delete
119
- - field_set_tag(:class => 'buttons') do
119
+ = field_set_tag(:class => 'buttons') do
120
120
= submit_tag "Remove"
121
121
122
122
For more information on using form helpers, check out the guide for
@@ -129,7 +129,7 @@ using a simple, intuitive syntax.
129
129
130
130
A form_for using these basic fields might look like:
131
131
132
- - form_for @user, '/register', :id => 'register' do |f|
132
+ = form_for @user, '/register', :id => 'register' do |f|
133
133
= f.error_messages
134
134
%p
135
135
= f.label :username, :caption => "Nickname"
@@ -147,7 +147,7 @@ A form_for using these basic fields might look like:
147
147
= f.label :color, :caption => "Favorite Color?"
148
148
= f.select :color, :options => ['red', 'black']
149
149
%p
150
- - fields_for @user.location do |location|
150
+ = fields_for @user.location do |location|
151
151
= location.text_field :street
152
152
= location.text_field :city
153
153
%p
@@ -159,7 +159,7 @@ There is also an additional StandardFormBuilder which builds on the abstract fie
159
159
160
160
A form_for using these standard fields might be:
161
161
162
- - form_for @user, '/register', :id => 'register' do |f|
162
+ = form_for @user, '/register', :id => 'register' do |f|
163
163
= f.error_messages
164
164
= f.text_field_block :name, :caption => "Full name"
165
165
= f.text_field_block :email
0 commit comments