search for: parent_place

Displaying 1 result from an estimated 1 matches for "parent_place".

2008 Nov 13
0
RESTful acts_as_tree
...ect method of creating new places in a RESTful way? I don''t necessarily care about have an url / place/id/place/id. I''m mostly interested to know the correct way of passing the parent_id in order to create the new place. This is my create method: # POST /places def create @parent_place = Place.find(params[:place_id]) # or do I use @parent_place = Place.find(params[:parent_id]) @place = @parent_place.children.build(params[:place]) respond_to do |format| if @place.save flash[:notice] = ''Place was successfully created.'' format.htm...