If you are not interested in installing a plugin just for one method(state_select) then You can put state_select.rb file in you rails lib directory. And include state_select.rb file in your controller where ever you want to use state_select method. The url for state_select.rb is http://github.com/bansalakhil/stateselect/tree/master/lib/state_select.rb Feedback please….
I have wrote my first plugin(state_select). This plugin allows to create drop down list for states, same as country_select method in rails. I know this is not a big deal… UPDATE: Curently it can generate state list for INDIA, US, UK, CANADA, AUSTRALIA, SPAIN, FRANCE, UGANDA, GERMAN and NETHERLANDS. Usage: Return select and option tags … Continue reading Plugin: state_select, generate drop down selection box for states