Commit def48375 authored by Milan's avatar Milan

make blogfeed available at /feed

parent 0a350938
......@@ -8,8 +8,7 @@ atom_feed do |feed|
entry.author do |author|
author.name('The wonderful World of Illuna')
end
entry.content(markdownify(blogpost.content), :type => 'html')
entry.content(markdownify(blogpost.body), :type => 'html')
end
end
end
......@@ -30,11 +30,7 @@ controller :admin do
get 'admin' => 'admin#index', :as => 'admin'
end
#controller :blog do
resources :blog, only: [:index, :show]
# get 'blog' => 'blog#index', :as => 'blog'
# get 'blog
# root :to => 'blog#index'
#end
end
resources :blog, only: [:index, :show]
get 'feed' => 'blog#feed', :as => :news_feed, :defaults => {:format => :atom}
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment