Rails: RESTful Find, Initialize, or Create
- by Andrew
I have an app that has Cities in it. I'm looking for some suggestions on how to RESTfully structure a controller so that I can lookup, initialize, and create city records via AJAX requests. For instance:
Given a text field city_name
A user enters the name of a City, like "Paris, France"
The app checks this location to see if there is such a city…