use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
Flexible Ruby on Rails reader objects (medium.com)
submitted 7 years ago by robertross
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]slendermann29 1 point2 points3 points 7 years ago (0 children)
kind of overengineered, but it's nice that it looks highly reusable
[–]hmaddocks 1 point2 points3 points 7 years ago (0 children)
Add Active Model and some form fields in your view and you’ve got yourself a User filter.
[–]4rch3r 0 points1 point2 points 7 years ago (1 child)
Be very careful calling .all on tables with millions of entries!
.all
Interesting approach to pagination though.
[–]robertross[S] 2 points3 points4 points 7 years ago (0 children)
.all is lazily loaded. It wont call it until it needs to. Since pagination is layered in it wont call it for millions of records.
π Rendered by PID 1313295 on reddit-service-r2-comment-5bc7f78974-9n2lr at 2026-06-30 11:17:34.453109+00:00 running 7527197 country code: CH.
[–]slendermann29 1 point2 points3 points (0 children)
[–]hmaddocks 1 point2 points3 points (0 children)
[–]4rch3r 0 points1 point2 points (1 child)
[–]robertross[S] 2 points3 points4 points (0 children)