I am trying to implement navigation like in Tree Based Navigation but based on URLs defined in routes.rb (named routes, resources, …).
Is it possible to retreive a collection of all routes defined in routes.rb?
So I can use it in a select like this:
<%= f.collection_select :url, Route.all, :url, :name %>
Tnx!
Thanx to the hint of David Lyod I solved it!
Here is my code:
helper-method
and in my view I put: