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

Variable problems

Code challenge two is giving me trouble from my understanding it should look like this: status = "your status" commit here

Hey George, it's the second challenge in Ruby on Rails

1 Answer

Jason Loughry
Jason Loughry
5,680 Points

Hey Aaron, the instructions for that challenge are very specific. Take a look at them again for a hint; you are declaring the variable properly. ;)

Jason Loughry
Jason Loughry
5,680 Points

Hint: To get the challenge right, it matter what you declare as the variable.

Hey Jason,

I'm fairly new to Ruby on Rails but yes of course I've tried to answer the second challenge several times just can't figure out what I'm doing wrong.

Jason Loughry
Jason Loughry
5,680 Points

Don't worry, you just have to make sure that you declare the variable the exact way that it says at the top of the challenge:

Add a new variable called "status" and give it the value "I'm on the internet."

If you follow that, it should work.

George Offley
George Offley
Courses Plus Student 7,386 Points

Look at the variable on the first line and you'll see how it should look, and then look in between the parenthesis in the instructions and you'll see what you have to put. Just remember to copy it exactly as you see it.

George thank you I got it a few days ago slipped my mind to thank you :)

George Offley
George Offley
Courses Plus Student 7,386 Points

Anytime!! I'm just glad I'm moving from asking questions to answering them!

Nice.... hey I just posted a wordpress question as well, how to get large videos to HTML5 and into your WP blog if you want to take a swing at this one to.