Lib file state_select.rb

September 13, 2006 at 6:42 am 5 comments

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: rails, Ruby, RubyonRails. Tags: .

Plugin: state_select, generate drop down selection box for states What do you see a face or an Eskimo?

5 Comments Add your own

  • 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!

    Reply
  • 2. Garth  |  October 24, 2006 at 5:26 pm

    Also missed Alaska and need to sort the US state names properly

    Reply
  • 3. Akhil Bansal  |  October 25, 2006 at 4:26 am

    Thanks Garth,
    I will definitely do it

    Reply
  • 4. Garth  |  October 25, 2006 at 1:42 pm

    One more thing: “Missourri” should only have one “r”.

    Reply
  • 5. Akhil Bansal  |  October 31, 2006 at 3:46 pm

    Thanks Again

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Important Notice…

I have moved this blog to http://webonrails.com . I will continue posting at http://webonrails.com, not on https://webonrails.wordpress.com.

Kindly update your book marks to http://webonrails.com

and http://webonrails.com/feed .

I am really very sorry for inconvenience.

Comming Soon….

Domain for Sale

TheRailsHosting.com


(Contact me)

Recent Posts

Calender

September 2006
M T W T F S S
« Aug   Oct »
 123
45678910
11121314151617
18192021222324
252627282930  

Subscribe

  • Add to Google
  • Subscribe in NewsGator Online
  • Subscribe with Bloglines
  • WebOnRails on feedburner
  • technorati

del.icio.us

Feeds

Flickr Photos

A bellezza di a natura (C☺rsica)

JWL5932 Mountain Hare..

Black and Gold

More Photos

Visitor’s Location

Blog Stats

  • 17,978 hits

%d bloggers like this: