No commit activity in last 3 years
No release in over 3 years
Allows you to add a currency select field in formtastic
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.2.9

Runtime

>= 0.9.7
 Project Readme

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 © 2010 Wong Liang Zan. See LICENSE for details.