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.
This commit is contained in:
Skud
2012-11-13 22:32:55 +11:00
parent 9f70027f87
commit 0cc4b81d9b

View File

@@ -4,9 +4,9 @@
<link href='http://fonts.googleapis.com/css?family=Sevillana' rel='stylesheet' type='text/css'>
- 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"