HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
rubocop
rails-style-guide
Web Development2011–2018
rubocop / rails-style-guide

rails-style-guide

A community-driven Ruby on Rails style guide

3Distinct people
3Mentions
0Explicit recommenders
6.5KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A community-driven Ruby on Rails style guide

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 5:04:57 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year3 dated mentions

Observed mentions: 2011-10-21 13:53:55 UTC to 2018-05-11 14:24:01 UTC.

0122011-01-01 00:00:00 UTC to 2012-01-01 00:00:00 UTC (exclusive): 2 mentions; 2 submissions, 0 comments20112012-01-01 00:00:00 UTC to 2013-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2013-01-01 00:00:00 UTC to 2014-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2014-01-01 00:00:00 UTC to 2015-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments20142015-01-01 00:00:00 UTC to 2016-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2016-01-01 00:00:00 UTC to 2017-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2017-01-01 00:00:00 UTC to 2018-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments2018

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20112011-01-01 00:00:00 UTC2012-01-01 00:00:00 UTC220
20122012-01-01 00:00:00 UTC2013-01-01 00:00:00 UTC000
20132013-01-01 00:00:00 UTC2014-01-01 00:00:00 UTC000
20142014-01-01 00:00:00 UTC2015-01-01 00:00:00 UTC000
20152015-01-01 00:00:00 UTC2016-01-01 00:00:00 UTC000
20162016-01-01 00:00:00 UTC2017-01-01 00:00:00 UTC000
20172017-01-01 00:00:00 UTC2018-01-01 00:00:00 UTC000
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC110

What Hacker News says

3 sources
inem·May 11, 2018Submission

Ask HN: Is there a single comprehensive high-level Ruby on Rails style guide?

The Official Rails Guide simply describes all the features. Bozhidar’ Rails Style Guide (https://github.com/bbatsov/rails-style-guide) is about things that are important but are kind of low-level. To keep the power of Rails under control teams should develop a set of high—level constraints to follow. I thought that some companies might have been published something like this. Surprisingly, I found only a few if them: * https://github.com/airbnb/ruby#rails * https://github.com/thoughtbot/guides/tree/master/style/rails * https://docs.gitlab.com/ee/development/README.html#best-practices * https://github.com/hopsoft/rails_standards * http://guidelines.plataformatec.com.br/rails.html Although, the most of them are about aesthetics, naming conventions and code formatting, and a very little about Rails. The most interesting one is from GitLab. T
Read the rest
hey explain why they don’t use STI and polymorphic associations, for example. Yet, it doesn’t give the full picture. I’d like to get these questions answered, for example: * What kind of stuff is ok to put in models? * What gems are fine to use and which ones should be avoided? And why? * What do we do when there is a really complex business logic? Where should it go? * In which situations it is fine to use concerns? Yet I couldn’t find a single guide answering these and similar questions in public. Possible explanations: 1. Companies don't have Rails style guides because they have their code. You join a company, you learn conventions from the existing code. 2. Companies treat this knowledge as Know-How and do not want to share it in public. 3. They are not very proud of what they have to share it in public, because of potential criticism. 4. “We’re not sure why we do it in a way we do it”, so we can’t really verbalize the rules. What do you think on the topic?
4 points · Open discussion

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.