Forum: Ruby on Rails showing posts in blog

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
0ec3a97cb8b186a2d3388ab4e7b1efab?d=identicon&s=25 James Jack-Been (ghostheadx)
on 2013-01-13 00:00
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?
Ce5e201eca55d4f79d0ead9acc91d544?d=identicon&s=25 Dheeraj Kumar (Guest)
on 2013-01-13 00:06
(Received via mailing list)
This topic is locked and can not be replied to.