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
Colin Stodd
3,160 PointsUser_id not showing a name in the "Adding a Dropdown" lesson.
**** UPDATE *** I had a misspelling. I spelled label as lable.
Title says it all... When adding the code
<%= f.input :user_id, collection: User.all, lable_method: :full_name %>
to _form.html.erb, its supposed to give me a name to select, to post to a status. However, I am only given the saved number from memory.
1 Answer
Adam Sackfield
Courses Plus Student 19,663 PointsTry this in console
rails c
User.delete_all
Status.delete_all
Then re sign up and post a status. See if that works
Colin Stodd
3,160 PointsColin Stodd
3,160 PointsLable should be Label