Skip to content

Commit 00b3054

Browse files
committed
Merge pull request #1468 from padrino/upgrade-documentations
Upgrade documentations
2 parents e1c1e18 + b9148c8 commit 00b3054

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

padrino-gen/README.rdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ You can also instruct the generator to skip a certain component to avoid using o
3838

3939
The available components and their default options are listed below:
4040

41-
test:: none (default), bacon, shoulda, cucumber, testspec, riot, rspec, minitest
41+
test:: none (default), bacon, shoulda, cucumber, testspec, riot, rspec, minitest, steak
4242
renderer:: slim (default), erb, erubis, liquid, haml
4343
stylesheet:: none (default), less, compass, sass, scss
4444
mock:: none (default), mocha, rr

padrino-helpers/README.rdoc

+6-6
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ For more information on using asset helpers, check out the guide for
102102
Form helpers are the 'standard' form tag helpers you would come to expect when building forms. A simple
103103
example of constructing a non-object form would be:
104104

105-
- form_tag '/destroy', :class => 'destroy-form', :method => 'delete' do
105+
= form_tag '/destroy', :class => 'destroy-form', :method => 'delete' do
106106
= flash_tag(:notice)
107-
- field_set_tag do
107+
= field_set_tag do
108108
%p
109109
= label_tag :username, :class => 'first'
110110
= text_field_tag :username, :value => params[:username]
@@ -116,7 +116,7 @@ example of constructing a non-object form would be:
116116
= select_tag :strategy, :options => ['delete', 'destroy'], :selected => 'delete'
117117
%p
118118
= check_box_tag :confirm_delete
119-
- field_set_tag(:class => 'buttons') do
119+
= field_set_tag(:class => 'buttons') do
120120
= submit_tag "Remove"
121121

122122
For more information on using form helpers, check out the guide for
@@ -129,7 +129,7 @@ using a simple, intuitive syntax.
129129

130130
A form_for using these basic fields might look like:
131131

132-
- form_for @user, '/register', :id => 'register' do |f|
132+
= form_for @user, '/register', :id => 'register' do |f|
133133
= f.error_messages
134134
%p
135135
= f.label :username, :caption => "Nickname"
@@ -147,7 +147,7 @@ A form_for using these basic fields might look like:
147147
= f.label :color, :caption => "Favorite Color?"
148148
= f.select :color, :options => ['red', 'black']
149149
%p
150-
- fields_for @user.location do |location|
150+
= fields_for @user.location do |location|
151151
= location.text_field :street
152152
= location.text_field :city
153153
%p
@@ -159,7 +159,7 @@ There is also an additional StandardFormBuilder which builds on the abstract fie
159159

160160
A form_for using these standard fields might be:
161161

162-
- form_for @user, '/register', :id => 'register' do |f|
162+
= form_for @user, '/register', :id => 'register' do |f|
163163
= f.error_messages
164164
= f.text_field_block :name, :caption => "Full name"
165165
= f.text_field_block :email

0 commit comments

Comments
 (0)