Developing a plugin, menu lost
Added by Eduardo Yáñez Parareda about 15 years ago
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?
Replies (1)
[Solved] Developing a plugin, menu lost - Added by Eduardo Yáñez Parareda about 15 years ago
Finally it was only that the controller's method show doesn't go to find the project.... ups!
def find_project
@project = Project.find(params[:project_id]) #if params[:project_id]
end
now the menu appears fine.