below is the error i am getting
Action Controller: Exception caught
Showing room/search.html.erb where line #9 raised:
You have a nil object when you didn't expect it! You might have expected an instance of ActiveRecord::Base. The error occurred while evaluating nil.