Guest User

Untitled

a guest
Feb 21st, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. match("/:permalink").defer_to do |request, params|
  2. unless (article = Feather::Article.find_by_permalink(params[:permalink])).nil?
  3. {:controller => "feather/articles", :action => "show", :id => article.id}
  4. end
  5. end
Add Comment
Please, Sign In to add comment