Displaying 2 results from an estimated 2 matches for "show_by_name".
2006 Mar 06
0
Multiple actions for one route (making pretty URLs hit different actions)
Hi all,
I''m trying to make pretty URLs using routes for some of my actions
across different controllers. For example:
http://www.example.com/london ->
http://www.example.com/articles/show_by_name/london
But if the id ''about'' couldn''t be found, then to search for it as
another action, this time from the ''branch'' controller.
http://www.example.com/london ->
http://www.example.com/branches/show_by_name/london
And so on, checking through diff...
2009 Jul 17
3
how to get "www.site.com/user1" address
Hi,
I am a newcomer to the Rails Front. Currently reading chapter 17 of
Agile Web Development on Rails. But a burning question, that I would
appreciate anyone being able to verify for me!
Here goes:
What I am hoping of trying to build is a site where I can have a page
for individual entry in the database. So if it were users: I wanted to
have a page in the the format: www.example.com/user1