Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Rails adapter for Carmen (provides country_select and subregion_select)
Branch: master
Pull request Compare This branch is 60 commits behind jim:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
Gemfile
Gemfile.lock
MIT-LICENSE
README.md
Rakefile
carmen-rails.gemspec

README.md

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.

Something went wrong with that request. Please try again.