Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
a plugin to render currency_select with formtastic
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
.document
.gitignore
LICENSE
README.rdoc
Rakefile
VERSION
formtastic_currency_select.gemspec

README.rdoc

formtastic_currency_select

Formtastic Currency Selects is now merged into formtastic. It'll be available at the next release of formtastic (versions > 0.9.7).

The gem adds the :currency input type in formtastic form builder

Installation

First install install the currency_select plugin github.com/gavinlaking/currency_select

then,

$ gem install formtastic_currency_select

Usage

# below is in haml, should translate to erb easily 
- semantic_form_for @ticket, :url => event_tickets_path(@event), :html => {:method => :post} do |f|

  - f.inputs :name => "Ticket" do
    = f.input :price, :label => 'Price'
    = f.input :currency, :label => 'Currency', :as => :currency, :input_html => "foo", :priority_currencies => ["Euro", "US Dollar"]

Copyright

Copyright © 2010 Wong Liang Zan. See LICENSE for details.

Something went wrong with that request. Please try again.