Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Ruby Build a Simple Ruby on Rails Application Customizing Forms Creating Relationships

Cannot add new Statuses

So all of a sudden while going through the Treebook project I can no longer successfully add new statuses. When I try to submit a new status the url changes from

http://localhost:3000/statuses/new

to something along the lines of

http://localhost:3000/statuses/new?utf8=%E2%9C%93&authenticity_token=%2Bc6Ij54sBafK0%2BmEguM3OTiYehuESpKcZhqqNhFZDRc%3D&status%5Buser_id%5D=1&status%5Bcontent%5D=Statuscontent&commit=Create+Status

and the fields are cleared but we stay on the same page. If I go to All Statuses the new ones are not added.

Can you shed any light on what's going on here?

3 Answers

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

What does your new status page look like? Is there a chance the method: :post got left out of the form?

I'm not sure what I did but it's working now... thanks anyway!

robberbaron
robberbaron
23,869 Points

Also ran into the authenticity_token thing - check your cache or try another browser....