From e0ef1ad715702b525efd823a615e6dad3c5875ba Mon Sep 17 00:00:00 2001 From: will Date: Sun, 18 May 2014 09:16:58 +1000 Subject: [PATCH 1/4] Strong Parameters --- app/admin/categories.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/admin/categories.rb b/app/admin/categories.rb index bb8d7e5..0789b9a 100644 --- a/app/admin/categories.rb +++ b/app/admin/categories.rb @@ -1,6 +1,7 @@ ActiveAdmin.register Blog::Category do menu parent: "Blog", label: "Categories" - + permit_params :name, :description + index do column :name default_actions From 6291cca2e33f14ccaa9c4dc796a52a7bdabad698 Mon Sep 17 00:00:00 2001 From: will Date: Sun, 18 May 2014 09:19:06 +1000 Subject: [PATCH 2/4] Strong Parameters for authors --- app/admin/authors.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/admin/authors.rb b/app/admin/authors.rb index 1c965b5..edc610d 100644 --- a/app/admin/authors.rb +++ b/app/admin/authors.rb @@ -1,6 +1,7 @@ ActiveAdmin.register Blog::Author do menu parent: "Blog", label: "Authors" - + permit_params :first_name, :last_name, :bio + index do column :first_name column :last_name From b978ec1feb65e0fbb276b776f547a745563c3b12 Mon Sep 17 00:00:00 2001 From: will Date: Sun, 18 May 2014 09:20:47 +1000 Subject: [PATCH 3/4] Strong Parameters for tags --- app/admin/tags.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/admin/tags.rb b/app/admin/tags.rb index 293caa4..2b53949 100644 --- a/app/admin/tags.rb +++ b/app/admin/tags.rb @@ -1,6 +1,7 @@ ActiveAdmin.register Blog::Tag do menu parent: "Blog", label: "Tags" - + permit_params :name, :trending, :description + index do column :name column :trending From f179450fc35dcc9d7914bb7238f128789f521cda Mon Sep 17 00:00:00 2001 From: will Date: Sun, 18 May 2014 09:28:55 +1000 Subject: [PATCH 4/4] Strong Parameters for posts --- app/admin/posts.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/admin/posts.rb b/app/admin/posts.rb index de6ae6b..b3e0980 100644 --- a/app/admin/posts.rb +++ b/app/admin/posts.rb @@ -1,5 +1,8 @@ ActiveAdmin.register Blog::Post do menu parent: "Blog", label: "Posts" + permit_params :title, :author_name, :visible, :sticky, :published_at, :category_id, :author_id, + :abstract, :body, :comma_seperated_tags, :related_posts, :featured_image, + :seo_slug, :seo_title, :seo_description index do column :title