No commit activity in last 3 years
No release in over 3 years
provides form options for states in a variety of countries for the formtastic gem
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

formtastic_state_select¶ ↑

Formtastic State Selects adds the :state input type in formtastic form builder

Installation¶ ↑

First install the state_select plugin github.com/sprsquish/state_select

then,

$ gem install formtastic_state_select

Usage¶ ↑

# default country is US
<%- semantic_form_for @billing, :url => account_billings_path(@account), :html => {:method => :post} do |f| %>

 <%- f.inputs :name => "Billing Info" do %>
   <%= f.input :first_name %>
   <%= f.input :last_name %>
   <%= f.input :address_line_1 %>
   <%= f.input :address_line_2 %>
   <%= f.input :city %>
   <%= f.input :state, :as => :state, :label => 'UK States', :country => 'UK', :input_html => 'foo' %>

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