Quantcast
Channel: Rails is rendering views very slowly - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by nathanvda for Rails is rendering views very slowly

The methods total_likes, popular_post and top_five all work by assuming your associations are "arrays" (enumerations). While this works, definitally for smaller examples, it is less optimal. Because...

View Article



Answer by Vekka for Rails is rendering views very slowly

I think that you need to modify this methoddef popular_post self.posts.max_by do |a| a.likes end endmax_by is a method for an Enumerable class and you call it on a Post class, so this will not work...

View Article

Rails is rendering views very slowly

I'm still really new to Rails and working on a practice project lab and I ran into an issue where the view was rendering really slow.Any and all help would be appreciated!I also received this...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>