Rails: Displaying a user post form_for on a user page with nested routes

I'm building a facebook clone, and I'm trying to have a text area on each user's page to allow them to make posts. I've tried a whole bunch of different things with no success, but right now I am getting this error when trying to access the user's show page:

You say that your form is having a problem rendering on the user's show page. If you have this form w/ nested resource setup like this:

form_for [@user, @post]

It means your form needs access to both the @user and the @post instance variable whereever the form is to be rendered. In this case, it is in the show action in your users controller. So your users controller should have something like this: