Skip to content

Commit

Permalink
Correct docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
DAddYE committed Feb 23, 2012
1 parent cdb92a0 commit 3e874a1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions padrino-helpers/lib/padrino-helpers/tag_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,16 +138,16 @@ def content_tag(name, content = nil, options = nil, &block)
#
# @example
# input_tag :text, :name => 'handle'
# # => <input type="test" name="handle">
# # => <input type="test" name="handle" />
#
# input_tag :password, :name => 'password', :size => 20
# # => <input type="password" name="password" size="20">
# # => <input type="password" name="password" size="20" />
#
# input_tag :text, :name => 'username', :required => true, :autofocus => true
# # => <input type="text" name="username" required autofocus>
# # => <input type="text" name="username" required autofocus />
#
# input_tag :number, :name => 'credit_card', :autocomplete => :off
# # => <input type="number" autocomplete="off">
# # => <input type="number" autocomplete="off" />
#
# @api semipublic
def input_tag(type, options = {})
Expand All @@ -172,13 +172,13 @@ def input_tag(type, options = {})
# # => <hr class="dotted">
#
# tag :input, :name => 'username', :type => :text
# # => <input name="username" type="text">
# # => <input name="username" type="text" />
#
# tag :img, :src => 'images/pony.jpg', :alt => 'My Little Pony'
# # => <img src="images/pony.jpg" alt="My Little Pony">
# # => <img src="images/pony.jpg" alt="My Little Pony" />
#
# tag :img, :src => 'sinatra.jpg, :data => { :nsfw => false, :geo => [34.087, -118.407] }
# # => <img src="sinatra.jpg" data-nsfw="false" data-geo="34.087 -118.407">
# # => <img src="sinatra.jpg" data-nsfw="false" data-geo="34.087 -118.407" />
#
# @api public
def tag(name, options = nil, open = false)
Expand Down

0 comments on commit 3e874a1

Please sign in to comment.