Rails Menus

I would like to know if there is a good plugin for rendering navigation links in Rails. It would be nice if it could render links to all possible GET actions on a controller directly from the routes file.


Can I ask the purpose of your question? There are only four get actions in a RESTful controller, (index, show, edit, and new). The overhead in producing a list using a special route generator on the fly is probably too much.

You could simply create a partial that can render those four actions for whatever controller you're currently viewing (think params[:controller]).

As far as for all possible Get actions: All possible get actions would encompass the show action for each item in your database. That is, again, best handled in a partial and the use of link_to.

It's hard to give a complete answer though, because your circumstances seem unique.

I hope this helps even a little.


While this does not answer ths specific question, you can see all of your OWN routes on the command line by running

rake routes

This will give you your own personal readout of all of your routes on the site, however like Chris said above, this isn't really a specific answer, more of an FYI.


You should try Mmmenu: http://github.com/snitko/mmmenu It's very flexible.

Need Your Help

Disabling network adapter without admin rights prompt

c# wpf powershell

I need to enable/disable all network adapters (kinda like Flight Mode) on a Windows 8 tablet when the user clicks on a button.

How do I handle more than 255 characters in a cell in Excel?

excel vba excel-vba

I'm using VBA code to copy paste (Application.Transpose) some information from sheet 2 to sheet 1. The code works pretty well, however, I have several cells with more than 255 characters.