I want to change the redirect on a create method, but I don't want to override the whole thing.
like, by default, if create (lets say) exists, it will have something like
respond_to do |format|
if @user.save(params[:user])
flash[:notice] = 'The user has been updated'
format.html { redirect_to :controller => "subscriptions",
:action => "show",
:id => @user.account_id }
format.xml { head :ok }
else
format.html { render :action => :edit }
format.xml { render :xml => @user.errors, :status => :unprocessable_entity }
end
end
or something like that...
but where it says format.html... I want to be able to change the redirect_to in my class that inherits this method... but I don't want to rewrite the whole thing. =\
ideas?