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