Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(46)

Unified Diff: app/views/account/_user_news_links.rhtml

Issue 2323: Upgrade to Rails 2 SVN Base: http://familyconnect.rubyforge.org/svn/trunk/
Patch Set: Created 1 year, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side by-side-diff with in-line comments
Download patch
Index: app/views/account/_user_news_links.rhtml
===================================================================
--- app/views/account/_user_news_links.rhtml (revision 36)
+++ app/views/account/_user_news_links.rhtml (working copy)
@@ -1,9 +1,9 @@
-<% if user.news_items_count == 0 -%>
+<% if user.news_items.count == 0 -%>
<%= current_user.id == user.id ? 'You have' : user.firstname + ' has' %>
not posted any news items.
<% else -%>
<%= current_user.id == user.id ? 'You have' : user.firstname + ' has' %>
- posted <%= pluralize(user.news_items_count, 'news item') %>.
+ posted <%= pluralize(user.news_items.count, 'news item') %>.
<%= link_to 'Click here', :controller => 'news', :action => 'from', :id => user %> to
- read <%= user.news_items_count == 1 ? 'it' : 'them' %>.
+ read <%= user.news_items.count == 1 ? 'it' : 'them' %>.
<% end -%>

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld r497