Joe Blow wrote:

<snip>

> But what if I wanted my urls to be pretty like
> 
> Instead of
> 
> http://www.mysite.com/users/
> 
> I want
> 
> http://www.mysite.com/list_all_my_damn_users
> 
> Basically I want the nice little helpers AND pretty urls.

Let me start out by saying that I actually think your "pretty" url is 
uglier than the "ugly" url... (: Anyway, I don't think Rails explicitly 
provides the possibility to completely redefine the look and feel of 
urls (unless you'ld use map.connect manually that doesn't provide any 
helper methods), but you can rid of the id's by using the to_param 
method in your ActiveRecord models as described in Railscasts #63 "Model 
Name in URL" (http://railscasts.com/episodes/63-model-name-in-url).

Hope that helps...
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to