Skip to content
Browse files

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

  • Loading branch information...
1 parent 75cc119 commit ab412e6925a0300c9381973b81b4fdfabfac85e3 @martinezo martinezo committed
View
2 app/views/web_site/home_pages/_recent_advised_theses.en.html.haml
@@ -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/
View
2 app/views/web_site/home_pages/_recent_advised_theses.html.haml
@@ -2,6 +2,6 @@
%h3 Ultimas Tesis Dirigidas:
- n = 0
- user.recent_adviced_theses.each do |thesis|
- = (n +=1).to_s + '. ' + thesis.as_text
+ = (n +=1).to_s + '. ' + thesis.to_s
%br/
%br/
View
2 app/views/web_site/home_pages/_recent_book_chapters.en.html.haml
@@ -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/
View
2 app/views/web_site/home_pages/_recent_published_books.en.html.haml
@@ -3,6 +3,6 @@
=t('web_site.home_pages.recent_published_books')
- n = 0
- user.recent_published_books.each do |books|
- = (n +=1).to_s + '. ' + books.as_text
+ = (n +=1).to_s + '. ' + books.to_s
%br/
%br/
View
2 app/views/web_site/home_pages/_recent_published_books.es.html.haml
@@ -3,6 +3,6 @@
=t('web_site.home_pages.recent_published_books')
- n = 0
- user.recent_published_books.each do |books|
- = (n +=1).to_s + '. ' + books.as_text
+ = (n +=1).to_s + '. ' + books.to_s
%br/
%br/

0 comments on commit ab412e6

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