Using RESTful Rails, How to Do an Insert and Create in One Action
- by Dex
I have a link on a website that says "add object". When I do this, an AJAX call is made and I want to do the following things:
1) if the container in the session does not exist, create one, else use existing
2) add the object to the container
I'm new to RESTful design and am wondering how to best accomplish this in Rails. Step #1 in particular