Hi
I am new to Rails and have question. Maybe someone could help me with
this
I want to do something like this:
example.com/~user/file
where user is registered username, and then goes filename owned by
this user. So visiting this URL we can see uploaded file owned by
specific user. And if we visit example.com/~user - we can see list of
all files uploaded by this user.
Here is my solution for routes.rb
map.connect ':username/:file', :controller =>
'somecontroller', :requirements => { :username => /\~.*/ }
But I'm not sure if it is the best (correct?) way of doing this... I
would appreciate any help or advices.
Thanks
wbr, Vadim
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---