Skip to content

Simple update to permit the params for rails 4 #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/admin/authors.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion app/admin/categories.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ActiveAdmin.register Blog::Category do
menu parent: "Blog", label: "Categories"

permit_params :name, :description

index do
column :name
default_actions
Expand Down
3 changes: 3 additions & 0 deletions app/admin/posts.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion app/admin/tags.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down