lib/shinmun/routes.rb in georgi-shinmun-0.3.6 vs lib/shinmun/routes.rb in georgi-shinmun-0.3.7
- old
+ new
@@ -106,9 +106,10 @@
render 'index.rhtml'
end
get '/(.*)' do |path|
page = find_page(path)
+
if page
render 'page.rhtml', :page => page
else
raise "page '#{path}' not found"
end