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
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