Permalink
Browse files

Replace <<to_s>> instead <<as_text>> in partials views of home pages

  • Loading branch information...
1 parent fad6d9c commit e6d2e89379acc2ff8c72daca801b375e93423a3d @martinezo martinezo committed Dec 3, 2012
@@ -8,7 +8,7 @@
%br/
- unless user.professional_address.nil?
%font.address
- = user.professional_address.as_text
+ = user.professional_address.to_s
%br
%b C&oacute;digo Postal:
= user.professional_address.postal_address_to_s
@@ -3,6 +3,6 @@
=t('web_site.home_pages.recent_advised_theses')
- n = 0
- user.recent_advised_theses.each do |thesis|
- = (n +=1).to_s + '. ' + thesis.as_text
+ = (n +=1).to_s + '. ' + thesis.to_s
%br/
%br/
@@ -3,6 +3,6 @@
=t('web_site.home_pages.recent_book_chapters')
- n = 0
- user.recent_book_chapters.sort! {|x,y| y.year <=> x.year}.each do |chapter|
- = (n +=1).to_s + '. ' + chapter.as_text
+ = (n +=1).to_s + '. ' + chapter.to_s
%br/
%br/

0 comments on commit e6d2e89

Please sign in to comment.