Blake Barnes


30 Experience
0 Lessons Completed
0 Questions Solved


Hi Chris!

I love the videos! I've been stuck on this problem for a while and tried StackOverflow( but with no response and I know you're busy but I thought I'd try.

I have forums(the parent model) that have many forum_threads but each forum_thread is unique to that certain forum. I'd like to be able to search each forum (which IS working just fine) as well as each forum_thread within that unique forum(which is just rendering ALL forum_threads rather than the searched thread). Would you be so kind as to take a look at my SO question and see what I'm doing wrong?

Posted in Forum Series Part 2: Routes Discussion

Well i made a new method called "require_same_user" in my application_controller and defined it as
if !logged_in?
flash[:danger] = "You must be logged in to do that."
redirect_to root_path

That seemed to fix it.

Posted in Forum Series Part 2: Routes Discussion

I'm getting an error "COULD NOT FIND USER WITH 'ID'=". I'm not using the Devise Gem but I have ":set_user" method defined in my application controller as "@user = User.find(params[:user_id])" instead of ":authenticate_user!". I have the nested routes just like the video. I don't understand what's wrong here. I appreciate any help.