Skip to content

Rails adapter for Carmen (provides country_select and subregion_select)

License

Notifications You must be signed in to change notification settings

mattstenback/carmen-rails

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

carmen-rails

carmen-rails is a Rails 3 plugin that supplies two new form helper methods: country_select and subregion_select. It uses carmen as its source of geographic data.

Installation

Just add carmen-rails to your Gemfile:

gem 'carmen-rails', '1.0.0.pre'

Usage

<%= form_for(@order) do |f| %>
  <div class="field">
    <%= f.label :country_code %><br />
    <%= f.country_select :country_code, priority: %w(US CA), prompt: 'Please select a country' %>
  </div>
<% end %>

More docs coming soon.

Demo app

There is a live demo app that shows carmen-rails in action.

About

Rails adapter for Carmen (provides country_select and subregion_select)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published