diff options
author | Alex Legler <alex@a3li.li> | 2014-05-11 14:09:19 +0200 |
---|---|---|
committer | Alex Legler <alex@a3li.li> | 2014-05-11 14:09:19 +0200 |
commit | c6fd7d55431d5439f4df86f0b4d9a8da22976af0 (patch) | |
tree | 9bcf5bd96ca789c37d0bc0e4e443a5975f76ceda | |
parent | Templates fix for rails 4 (diff) | |
download | glsamaker-c6fd7d55431d5439f4df86f0b4d9a8da22976af0.tar.gz glsamaker-c6fd7d55431d5439f4df86f0b4d9a8da22976af0.tar.bz2 glsamaker-c6fd7d55431d5439f4df86f0b4d9a8da22976af0.zip |
Another stab at that
-rw-r--r-- | app/controllers/admin/templates_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/templates_controller.rb b/app/controllers/admin/templates_controller.rb index 04b9c8d..1e5de16 100644 --- a/app/controllers/admin/templates_controller.rb +++ b/app/controllers/admin/templates_controller.rb @@ -42,7 +42,7 @@ class Admin::TemplatesController < ApplicationController # POST /admin/templates # POST /admin/templates.json def create - @template = Template.new(params[:template]).permit(:name, :text, :target, :enabled) + @template = Template.new(params[:template].permit(:name, :text, :target, :enabled)) respond_to do |format| if @template.save |