Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http://192.168.2.20:8080/Location/new/123.123,-123.123/
- map.connect '/Location/new/:coords/', :controller => 'Location', :action => 'new', :coords => /d+.d+,-d+.d+/
- map.connect '/Location/list/', :controller => 'Location', :action => 'list'
- map.connect '/Location/create/', :controller => 'Location', :action => 'create'
- def new
- @coords = Location.new(params[:coords])
- end
- NoMethodError in LocationController#new
- undefined method `stringify_keys!' for "123.123,-123.123":String
- def new
- @location = Location.new( { :coords => params[:coords] } )
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement