Vivek Sampara wrote in post #1165021:
> David for the route to show up like twitter, you can use friendly_id
> <https://github.com/norman/friendly_id> gem. or write your own route
> like
> this
>
> get "/:profile_id" => "profiles#show", :as => "user_profile",
> :constraints
> => { :profile_id => /[^\/]+/ }

I started using this gem earlier today. It works great. All I had to do 
was add the :slug to the :users table and then I added the initializing 
statement to the user.model. I'm currently looking into social 
networking gems, I'm trying to pick the best one before I dive in with 
the project.

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/39bd357d8093e938daed217ce9419522%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to