I can't get the following code snippit to work from the above

To get the search feature working, we need to update the controller side. 
Add a show method to 
app/controllers/projects_controller.rb like this: 

def show 
  @project = find_instance 
  @reqlist = @project.requirements.where(["title like ?", 
"%#{params[:search]}%"]).order(parse_sort_param(:title, :status).join(' ')) 
end 
 
the problem comes from the @reqlist line I get the following errror

NoMethodError in ProjectsController#show

You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.join

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to