Once saving a rate, the user is redirected to the rate list. #1914
This commit is contained in:
1 parent
b7a4850b06
commit
cc063768b6
2 files changed
+3
-3
No files matched your search
@@ -49,7 +49,7 @@ class RatesController < ApplicationController
|
||||
respond_to do |format|
|
||||
if @rate.save
|
||||
flash[:notice] = 'Rate was successfully created.'
|
||||
format.html { redirect_to(@rate) }
|
||||
format.html { redirect_to(rates_url(:user_id => @rate.user_id)) }
|
||||
format.xml { render :xml => @rate, :status => :created, :location => @rate }
|
||||
else
|
||||
format.html { render :action => "new" }
|
||||
|
||||
Reference in new issue
Block a user