Guest User

Untitled

a guest
Apr 24th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. ##Rails routing issue
  2.  
  3. map.normal_thing 'things/:id', :controller => ... whatever
  4. map.uuid_thing 'things/:uuid', :controller => ... whatever
  5.  
  6. @thing= Thing.find(1)
  7.  
  8. >> normal_thing_path @thing
  9. => "/things/1"
  10.  
  11. >> uuid_thing_path @thing
  12. => "things/1"
  13.  
  14. ##@thing has a :uuid property. How can I get this to act how I want it too?
Add Comment
Please, Sign In to add comment