I’m using Rails 2.3.9. and I have a model Project, for which I have a column url_name.
I added a catch-all route in routes.rb so I can handle incoming urls like:
www…/1-folder-nr
www…/2-folder-test
www…/3-rails
(you get the idea).
Before this I had project_books_url(@project) to use in controller and views.
But now I need something to replace that project_books_url(@project), something that will generate me the full url?
It’s there something to act the same as the xxx_url helper so I can use it in the controller?
If anyone has any ideas or suggestion, they are greatly appreciated. Thanks.
Why don’t you just write a helper method that generates whatever you want?