Skip to content

Commit

Permalink
Fix the documentation of the select helper method.
Browse files Browse the repository at this point in the history
  • Loading branch information
malin-as committed Nov 8, 2017
1 parent 09e5cc4 commit 27bdd98
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/hanami/helpers/form_helper/form_builder.rb
Expand Up @@ -1121,7 +1121,7 @@ def password_field(name, attributes = {})
#
# <%=
# # ...
# values = Hash['it' => 'Italy', 'us' => 'United States']
# values = Hash['Italy' => 'it', 'United States' => 'us']
# select :store, values
# %>
#
Expand All @@ -1134,7 +1134,7 @@ def password_field(name, attributes = {})
# @example Prompt option
# <%=
# # ...
# values = Hash['it' => 'Italy', 'us' => 'United States']
# values = Hash['Italy' => 'it', 'United States' => 'us']
# select :store, values, options: { prompt: 'Select a store' }
# %>
#
Expand All @@ -1148,7 +1148,7 @@ def password_field(name, attributes = {})
# @example Selected option
# <%=
# # ...
# values = Hash['it' => 'Italy', 'us' => 'United States']
# values = Hash['Italy' => 'it', 'United States' => 'us']
# select :store, values, options: { selected: book.store }
# %>
#
Expand All @@ -1161,7 +1161,7 @@ def password_field(name, attributes = {})
# @example Prompt option and HTML attributes
# <%=
# # ...
# values = Hash['it' => 'Italy', 'us' => 'United States']
# values = Hash['Italy' => 'it', 'United States' => 'us']
# select :store, values, options: { prompt: 'Select a store' }, class: "form-control"
# %>
#
Expand All @@ -1175,7 +1175,7 @@ def password_field(name, attributes = {})
# @example Multiple select
# <%=
# # ...
# values = Hash['it' => 'Italy', 'us' => 'United States']
# values = Hash['Italy' => 'it', 'United States' => 'us']
# select :stores, values, multiple: true
# %>
#
Expand All @@ -1188,7 +1188,7 @@ def password_field(name, attributes = {})
# @example Multiple select and HTML attributes
# <%=
# # ...
# values = Hash['it' => 'Italy', 'us' => 'United States']
# values = Hash['Italy' => 'it', 'United States' => 'us']
# select :stores, values, multiple: true, class: "form-control"
# %>
#
Expand Down

0 comments on commit 27bdd98

Please sign in to comment.