Displaying 2 results from an estimated 2 matches for "person_url".
2006 Jul 04
0
undefined method `category_url''
Hi,
Is category_url or person_url available in Rails 1.1.4? I can''t find
it in the docs.
Thanks,
Peter
2006 Jun 28
0
ActiveResource (was: 1.1.3 available.)
...eController < ActionController::Base
def create
@people = Person.create(params[:person])
respond_to do |format|
format.html { redirect_to :action => ''index'' }
format.js # renders create.rjs
format.xml do
headers["Location"] = person_url(@person)
render :nothing => true
end
end
end
end
POST /people
person[name]=David
=> returns a redirect to index
Content-Type: application/xml
POST /people
<person>
<name>David</name>
</person>
POST /people.xml
person[name]=David
=> returns loc...