From 0cc4b81d9bb49cfd71a75022092029a3ccafdcd7 Mon Sep 17 00:00:00 2001 From: Skud Date: Tue, 13 Nov 2012 22:32:55 +1100 Subject: [PATCH] Fixes problem with devise caused by RSS changes The auto discovery links in the head of the HTML were causing trouble when rails tried to render the devise pages. It kept saying it couldn't find a route for /devise/updates. This seems to have fixed it. --- app/views/layouts/_meta.html.haml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/layouts/_meta.html.haml b/app/views/layouts/_meta.html.haml index f3e5d5d9c..ba0ba4ea7 100644 --- a/app/views/layouts/_meta.html.haml +++ b/app/views/layouts/_meta.html.haml @@ -4,9 +4,9 @@ - if (content_for?(:member_rss_username) && content_for(:member_rss_slug)) - = auto_discovery_link_tag(:rss, { :controller => "members", :action => 'show', :format => "rss", :id => yield(:member_rss_slug) }, { :title => "Growstuff - #{yield(:member_rss_username)}'s updates" }) - = auto_discovery_link_tag(:rss, { :controller => "updates", :format => "rss" }, { :title => "Growstuff - Recent updates from all members" }) - = auto_discovery_link_tag(:rss, { :controller => "crops", :format => "rss" }, { :title => "Growstuff - Recently added crops" }) + = auto_discovery_link_tag(:rss, { :controller => "/members", :action => 'show', :format => "rss", :id => yield(:member_rss_slug) }, { :title => "Growstuff - #{yield(:member_rss_username)}'s updates" }) + = auto_discovery_link_tag(:rss, { :controller => "/updates", :format => "rss" }, { :title => "Growstuff - Recent updates from all members" }) + = auto_discovery_link_tag(:rss, { :controller => "/crops", :format => "rss" }, { :title => "Growstuff - Recently added crops" }) %title = content_for?(:title) ? yield(:title) + " - Growstuff" : "Growstuff"