Hello I am a Rails Noob so I apologize if this is elementary. I'm creating a Twitter-like application and working on a 'reply' button that will automatically place a variable (the username of the tweet's author) into the tweet form at the top of the page. This is what I have now:
def reply
@tweet = Tweet.find(params[:id])
@message = User.find_by_user_id(params[@tweet])
end
I know that I'll have to change my routes but that's what I'm hung up on.
Any help would be greatly appreciated, thanks. I'm, again, a noob.