Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- scope.match(/.*/).to(:controller => "feather/articles", :action => "show").defer_to do |request, params|
- unless (article = Feather::Article.find_by_permalink(request.uri.to_s.chomp("/"))).nil?
- params.merge(:id => article.id)
- end
- end
Add Comment
Please, Sign In to add comment