Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Generate a Rails Application - status.rb

Hi guys,

I was following the video making treebook. After I entered this command;

rails generate scaffold status name:string content:text

I went to check the file in text editor and in the file status.rb I got only

class Status < ActiveRecord::Base end

Should I enter the missing part by myself or something was wrong here? I had the error when I tried to open ~/statuses page.

Thanks, Patchara

1 Answer

It is a little strange that it didn't put in attr_accessible.

Are you using Rails 4.0? These videos follow Rails 3.2

I'm using Rails 3.2. I have downloaded the package from railsinstaller.org.

Sorry, Brandon. It's really Rails 4.0. I didn't check it well enough.

I'm using Windows 8 and download the package from railsinstaller.org. How can I fix this?