lib/serious.rb in serious-0.2.10 vs lib/serious.rb in serious-0.2.11
- old
+ new
@@ -49,10 +49,10 @@
@articles = Article.all(:limit => Serious.items_in_feed)
builder :atom
end
# Specific article route
- get %r{^/(\d{4})/(\d{1,2})/(\d{1,2})/([^\\]+)} do
+ get %r{^/(\d{4})/(\d{1,2})/(\d{1,2})/([^\/]+)} do
halt 404 unless @article = Article.first(*params[:captures])
render_article @article
end
# Archives route