Skip to content

Commit

Permalink
Should use = instead of - if using slim or haml.[ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
namusyaka committed Oct 17, 2013
1 parent e1c1e18 commit 1a53eb8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions padrino-helpers/README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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
Expand All @@ -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"
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1a53eb8

Please sign in to comment.