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

Treebook can select any User to post

On the treebook app, I can still select any User to post status for after logging in. Is this addressed in a future video OR did I forget to delete something?

My _form.html.erb is

<%= f.input :user_id, collection: User.order(:first_name), label_method: :full_name %>
<%= f.input :content %>
<div class="form-actions">
<%= f.button :submit %>
</div>
<% end %>

I see on Jason's treebook github page this line

<%= f.input :user_id, collection: User.order(:first_name), label_method: :full_name %>

is gone. When I delete that line, I get a "User can't be blank" error.

1 Answer

You are correct, its fixed in a later video.

In the intermediate learning adventure correct? Not in the basic level? Thanks for the reply!