Developing a plugin, menu lost
Hello, I'm developing a plugin. For now I have 3 views: index, new and show.
I've integrated index into Projects, so the option is shown in the Project's menu, everything is right. Inside index I have a link to new, so the new view is shown, and above is the project's menu, ok.
But my index page have a list of items, and every item has a link to show it. Well, when I go through the link, the show view is presented, but Project's menu is lost. Have I to do something to get the menu as in others pages?
Finally it was only that the controller's method show doesn't go to find the project.... ups!
@project = Project.find(params[:project_id]) #if params[:project_id]
now the menu appears fine.