Skip to content

Commit

Permalink
Add a view helper example to the README
Browse files Browse the repository at this point in the history
  • Loading branch information
jim committed Jun 1, 2011
1 parent bac16df commit e09989c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.rdoc
Expand Up @@ -79,6 +79,15 @@ Methods that return country names also take an optional options hash as the last

Currently included localizations are: English (:en), German (:de), Hindi (:hi)

= Rails view helpers

Carmen ships with replacements for state_select and country_select. Usage is simple:

<%= form_for @address do |f| %>
<%= f.label :country, "Country" %> <%= f.country_select(:country, "US") %>
<%= submit_tag "Create" %>
<% end %>


== Todo

Expand Down

0 comments on commit e09989c

Please sign in to comment.