search for: heartrate_url

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

2007 Apr 24
1
problem POSTing with curl and REST using scaffold_resource
...by scaffold_resource) # POST /heartrates # POST /heartrates.xml def create @heartrate = Heartrate.new(params[:heartrate]) respond_to do |format| if @heartrate.save flash[:notice] = ''Heartrate was successfully created.'' #format.html { redirect_to heartrate_url(@heartrate) } format.xml { head :created, :location => heartrate_url(@heartrate) } else #format.html { render :action => "new" } format.xml { render :xml => @heartrate.errors.to_xml } end end end Thanks in advance for any suggestions!...