Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #config/routes.rb
- map.user_widget "widget/uid/:uid", :controller => :widget, :action => :index
- map.public_widget "widget", :controller => :home
- http://localhost:3000/widget -> leads to :controller => :home
- http://localhost:3000/widget?uid=123 -> leads to :controller => :home
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement