Skip to content
Browse files

Cleanup rails deprecation warnings

  • Loading branch information...
1 parent cf728e9 commit 5a1c7b0ab390927e334899c506a60b9af9a7b60b @courtenay courtenay committed Aug 4, 2009
View
2 app/helpers/application_helper.rb
@@ -58,7 +58,7 @@ def search_path(atom = false)
else
:search
end
- atom ? send("formatted_#{prefix}_posts_path", options.update(:format => :atom)) : send("#{prefix}_posts_path", options)
+ atom ? send("#{prefix}_posts_path", options.update(:format => :atom)) : send("#{prefix}_posts_path", options)
end
@@default_jstime_format = "%d %b, %Y %I:%M %p"
View
2 app/views/forums/index.html.erb
@@ -15,7 +15,7 @@
<h1 style="margin-top:0;"><%= 'Forums'[:forums_title] %></h1>
<p class="subtitle">
-<%= feed_icon_tag "Recent Posts"[:recent_posts], formatted_posts_path(:format => 'atom') %>
+<%= feed_icon_tag "Recent Posts"[:recent_posts], posts_path(:format => 'atom') %>
<%= topic_count %>, <%= post_count %> <%# OPTIMIZE ME voice_count %>
</p>
View
2 app/views/forums/show.html.erb
@@ -30,7 +30,7 @@
</h1>
<p class="subtitle">
- <%= feed_icon_tag @forum.name, formatted_forum_posts_path(@forum, :atom) %>
+ <%= feed_icon_tag @forum.name, forum_posts_path(@forum, :format => :atom) %>
<%= '{count} topic(s)'[(count=@forum.topics.size)==1 ? :topic_count : :topics_count, number_with_delimiter(count)] %>,
<%= '{count} post(s)'[(count=@forum.posts.size)==1 ? :post_count : :posts_count, number_with_delimiter(count)] %>
</p>
View
2 app/views/topics/show.html.erb
@@ -58,7 +58,7 @@
</h1>
<p class="subtitle">
- <%= feed_icon_tag @topic.title, formatted_forum_topic_posts_path(@forum, @topic, 'atom') %>
+ <%= feed_icon_tag @topic.title, forum_topic_posts_path(@forum, @topic, :format => 'atom') %>
<%= '{count} post(s)'[(count=@topic.posts.size)==1 ? :post_count : :posts_count, number_with_delimiter(count)] %>,
<%= '{count} voice(s)'[(count=@topic.voices.size)==1 ? :voice_count : :voices_count, number_with_delimiter(count)] %>
</p>

0 comments on commit 5a1c7b0

Please sign in to comment.
Something went wrong with that request. Please try again.