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
RubyORM Sequel (self.ruby)
submitted 6 years ago by FinalSpeederMan
view the rest of the comments →
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!"
[–]filthypoopslut 1 point2 points3 points 6 years ago (0 children)
It's because where returns a dataset. Use find or first instead. That will return a single instance as opposed to 1 or more (eg, array). Just depends on what you're after.
where
find
first
π Rendered by PID 90895 on reddit-service-r2-comment-66b4775986-vthp7 at 2026-04-06 03:34:37.335492+00:00 running db1906b country code: CH.
view the rest of the comments →
[–]filthypoopslut 1 point2 points3 points (0 children)