Permalink
Browse files

Merge pull request #1468 from padrino/upgrade-documentations

Upgrade documentations
  • Loading branch information...
nesquena committed Oct 17, 2013
2 parents e1c1e18 + b9148c8 commit 00b3054e5736804c19b216b4c7783644250ab3c3
Showing with 7 additions and 7 deletions.
  1. +1 −1 padrino-gen/README.rdoc
  2. +6 −6 padrino-helpers/README.rdoc
View
@@ -38,7 +38,7 @@ You can also instruct the generator to skip a certain component to avoid using o
The available components and their default options are listed below:
test:: none (default), bacon, shoulda, cucumber, testspec, riot, rspec, minitest
test:: none (default), bacon, shoulda, cucumber, testspec, riot, rspec, minitest, steak
renderer:: slim (default), erb, erubis, liquid, haml
stylesheet:: none (default), less, compass, sass, scss
mock:: none (default), mocha, rr
@@ -102,9 +102,9 @@ For more information on using asset helpers, check out the guide for
Form helpers are the 'standard' form tag helpers you would come to expect when building forms. A simple
example of constructing a non-object form would be:
- form_tag '/destroy', :class => 'destroy-form', :method => 'delete' do
= form_tag '/destroy', :class => 'destroy-form', :method => 'delete' do
= flash_tag(:notice)
- field_set_tag do
= field_set_tag do
%p
= label_tag :username, :class => 'first'
= text_field_tag :username, :value => params[:username]
@@ -116,7 +116,7 @@ example of constructing a non-object form would be:
= select_tag :strategy, :options => ['delete', 'destroy'], :selected => 'delete'
%p
= check_box_tag :confirm_delete
- field_set_tag(:class => 'buttons') do
= field_set_tag(:class => 'buttons') do
= submit_tag "Remove"
For more information on using form helpers, check out the guide for
@@ -129,7 +129,7 @@ using a simple, intuitive syntax.
A form_for using these basic fields might look like:
- form_for @user, '/register', :id => 'register' do |f|
= form_for @user, '/register', :id => 'register' do |f|
= f.error_messages
%p
= f.label :username, :caption => "Nickname"
@@ -147,7 +147,7 @@ A form_for using these basic fields might look like:
= f.label :color, :caption => "Favorite Color?"
= f.select :color, :options => ['red', 'black']
%p
- fields_for @user.location do |location|
= fields_for @user.location do |location|
= location.text_field :street
= location.text_field :city
%p
@@ -159,7 +159,7 @@ There is also an additional StandardFormBuilder which builds on the abstract fie
A form_for using these standard fields might be:
- form_for @user, '/register', :id => 'register' do |f|
= form_for @user, '/register', :id => 'register' do |f|
= f.error_messages
= f.text_field_block :name, :caption => "Full name"
= f.text_field_block :email

0 comments on commit 00b3054

Please sign in to comment.