From 33bfa4dd231e4042456b3a70059c9cf57af858cf Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Wed, 1 Feb 2012 16:34:06 +1300 Subject: Added support for new code in Refinery CMS since resolve/refinerycms#1234 --- app/views/refinery/blog/posts/_comments.html.erb | 2 +- app/views/refinery/blog/posts/_nav.html.erb | 6 +++--- app/views/refinery/blog/posts/_post.html.erb | 2 +- app/views/refinery/blog/posts/index.rss.builder | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'app/views/refinery/blog/posts') diff --git a/app/views/refinery/blog/posts/_comments.html.erb b/app/views/refinery/blog/posts/_comments.html.erb index a34d106..d662a1f 100644 --- a/app/views/refinery/blog/posts/_comments.html.erb +++ b/app/views/refinery/blog/posts/_comments.html.erb @@ -15,7 +15,7 @@ <% end %>

<%= t('add', :scope => 'refinery.blog.posts.show.comments') %>

- <%= form_for [main_app, :refinery_blog, @comment] do |f| %> + <%= form_for [refinery, :blog, @comment] do |f| %> <%= render :partial => "/refinery/admin/error_messages", :locals => { :object => f.object, diff --git a/app/views/refinery/blog/posts/_nav.html.erb b/app/views/refinery/blog/posts/_nav.html.erb index 3daacab..eafd35e 100644 --- a/app/views/refinery/blog/posts/_nav.html.erb +++ b/app/views/refinery/blog/posts/_nav.html.erb @@ -1,17 +1,17 @@ diff --git a/app/views/refinery/blog/posts/_post.html.erb b/app/views/refinery/blog/posts/_post.html.erb index 77e43ff..c3ae924 100644 --- a/app/views/refinery/blog/posts/_post.html.erb +++ b/app/views/refinery/blog/posts/_post.html.erb @@ -21,7 +21,7 @@ <% end %> diff --git a/app/views/refinery/blog/posts/index.rss.builder b/app/views/refinery/blog/posts/index.rss.builder index 99ae0eb..867c6d6 100644 --- a/app/views/refinery/blog/posts/index.rss.builder +++ b/app/views/refinery/blog/posts/index.rss.builder @@ -3,14 +3,14 @@ xml.rss :version => "2.0" do xml.channel do xml.title Refinery::Core.config.site_name xml.description Refinery::Core.config.site_name + " Blog Posts" - xml.link main_app.refinery_blog_root_url + xml.link refinery.blog_root_url @posts.each do |post| xml.item do xml.title post.title xml.description post.body xml.pubDate post.published_at.to_s(:rfc822) - xml.link main_app.refinery_blog_post_url(post) + xml.link refinery.blog_post_url(post) end end end -- cgit v1.2.3