Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##model - don't know how this works...
- class Post
- def stuff_for_named_route
- :year => datetime.year, :month => datetime.month, :day => datetime.day, :slug => slug
- end
- end
- ## generate link
- show_path(post.stuff_for_named_route)
Add Comment
Please, Sign In to add comment