lib/shinmun/routes.rb in georgi-shinmun-0.3.9 vs lib/shinmun/routes.rb in georgi-shinmun-0.3.10
- old
+ new
@@ -1,9 +1,9 @@
Shinmun::Blog.map do
get '/categories/(.*)\.rss' do |category|
- render 'category.rxml', find_category(category)
+ render 'category.rxml', find_category(category).merge(:layout => false)
end
get '/categories/(.*)' do |category|
render 'category.rhtml', find_category(category)
end
@@ -20,10 +20,10 @@
get '/(\d+)/(\d+)' do |year, month|
render 'archive.rhtml', :year => year.to_i, :month => month.to_i, :posts => posts_for_month(year.to_i, month.to_i)
end
get '/index\.rss' do
- render 'index.rxml'
+ render 'index.rxml', :layout => false
end
post '/comments' do
if params['preview'] == 'true'
render '_comments.rhtml', :comments => [Shinmun::Comment.new(params)]