abhishekpshukla/city_select
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
CitySelect
==========
City Select plugin is currently used for selection of the indian cities, based on the parameter(state name) which
user parse...
Note
====
If you are not able to find the city name please update the city_name.rb file which is located inside the lib
folder of the application...
Example
=======
<% form_for(@user) do |f| %>
<%= f.city_select(:city, city = 'Maharashtra', options = {}, html_options = {}) %>
OR
<%= city_select(:user, :city, city = 'Maharashtra', options = {}, html_options = {}) %>
<%end%>
Please visit "http://worldofopensource.blogspot.com/2010/03/cityselect-plugin-to-display-list-of.html" to see the Example using jQuery.