Lib file state_select.rb
September 13, 2006
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://opensvn.csie.org/state_select/trunk/lib/state_select.rb
Feedback please….
Entry Filed under: Ruby, RubyonRails, rails. .
5 Comments Add your own
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed







1.
Garth | October 24, 2006 at 2:11 pm
Should upcase the country name when appending _STATE to it.
Also need some adjustments to the Canadian provinces:
["Alberta", "British Columbia", "Manitoba", "New Brunswick", "Newfoundland", "Northwest Territories", "Nova Scotia", "Nunavut", "Ontario", "Prince Edward Island", "Quebec", "Saskatchewan", "Yukon"],
Otherwise, looks nice!
2.
Garth | October 24, 2006 at 5:26 pm
Also missed Alaska and need to sort the US state names properly
3.
Akhil Bansal | October 25, 2006 at 4:26 am
Thanks Garth,
I will definitely do it
4.
Garth | October 25, 2006 at 1:42 pm
One more thing: “Missourri” should only have one “r”.
5.
Akhil Bansal | October 31, 2006 at 3:46 pm
Thanks Again