I am using Ruby on Rails 3 and I would like to know what the :location => ...
and head :ok
statements mean in following code, how they work and how I can\should use those.
respond_to do |format|
format.xml { render :xml => @user, :status => :created, :location => @user }
end
respond_to do |format|
format.xml { head :ok }
end