No, currently my post.rb file is something like that. post.rb
class Post < ActiveRecord::Base end But when I change the file to : class Post < ActiveRecord::Base attr_accessible :title, :content end then on running the application, it is saying, undefined method `attr_accessible' for #<Class:0x007f3c32758418> On console => NoMethodError (undefined method `attr_accessible' for #<Class:0x007f3c32758418>): app/models/post.rb:2:in `<class:Post>' app/models/post.rb:1:in `<top (required)>' app/controllers/posts_controller.rb:29:in `index' -- 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f3da5537581ac2c6abbafeca602d9209%40ruby-forum.com. For more options, visit https://groups.google.com/d/optout.

