Hello,
I'm trying to build a helper called
def current_project
@current_project = Project.find(params[:project_id])
end
I want this so that in the navigation plugin I'm using I can use current_project to populate the navigation.
Problem I'm having is while params[:project_id] is available in the navigation config (navigation.rb) it is not working in the application_helper.rb. I get the following error:
"find_with_ids': Couldn't find Project without an ID"
Here's the navigation plugin, in case you're curious: http://github.com/andi/simple-navigation/
ideas why?
Thanks