http://guides.rubyonrails.org/security.html#mass-assignment
--
Dheeraj Kumar
On Sunday 13 January 2013 at 4:30 AM, James Jack-Been wrote:
> When I make a new post in my blog, it returns this when I try to view my
> current posts:
>
> ---------------------------------------------------------------------------
>
> ActiveModel::MassAssignmentSecurity::Error in PostsController#create
>
> Can''t mass-assign protected attributes: text
>
> Rails.root: C:/Users/Josh Koloff/Desktop/Programming Stuff/Rails
> Stuff/blog
> Application Trace | Framework Trace | Full Trace
>
> app/controllers/posts_controller.rb:43:in `new''
> app/controllers/posts_controller.rb:43:in `create''
>
> Request
>
> Parameters:
>
> {"utf8"=>"✓",
>
"authenticity_token"=>"KFFrINOVA60MGYf0K3reYLxTFklrkC9uCiLMq2QVQpo=",
> "post"=>{"name"=>"",
> "title"=>"",
> "content"=>"",
> "text"=>""},
> "commit"=>"Create Post"}
>
> Show session dump
>
> Show env dump
> Response
>
> Headers:
>
> None
>
> ---------------------------------------------------------------------------
>
> I know I''m not doing what I''m supposed to do. Help?
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
> To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
(mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org).
> To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
(mailto:rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org).
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.