ruby - Unable to load JSON data for Cities gem in rails -



ruby - Unable to load JSON data for Cities gem in rails -

i using cities gem allowing users select city.

according documentation path json info should set using next line of code.

cities.data_path = '/path/to/cities'

i not able figure out add together , how load. i've tried adding line location of json files in app directory no luck. still error, "not able load json data".

i beginner , can see documentation not much beginner friendly.

what in rails create initializer file in config/initializers, give proper name cities.rb , set code in there.

ruby-on-rails ruby json gem

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -