X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/851de28303fc9c24d095b9452b862bea618ec0da..7da8a5a1a82c759ff08a7cf434bb1e51158ff7af:/app/controllers/redactions_controller.rb diff --git a/app/controllers/redactions_controller.rb b/app/controllers/redactions_controller.rb index 201f1883f..03324ad8f 100644 --- a/app/controllers/redactions_controller.rb +++ b/app/controllers/redactions_controller.rb @@ -19,7 +19,7 @@ class RedactionsController < ApplicationController def create @redaction = Redaction.new - @redaction.user_id = @user.id + @redaction.user = @user @redaction.title = params[:redaction][:title] @redaction.description = params[:redaction][:description] # didn't see this come in from the form - maybe i'm doing something @@ -68,7 +68,7 @@ class RedactionsController < ApplicationController else if @redaction.destroy flash[:notice] = t('redaction.destroy.flash') - redirect_to :index + redirect_to :redactions else flash[:error] = t('redaction.destroy.error') redirect_to @redaction