Skip to content

Commit

Permalink
Add guide for where to put service classes (#652)
Browse files Browse the repository at this point in the history
  • Loading branch information
sallyhall authored May 13, 2022
1 parent 1eea5d4 commit 4cbcfdc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rails/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
- Order i18n translations alphabetically by key name.
- Order model contents: constants, macros, public methods, private methods.
- Put application-wide partials in the [`app/views/application`] directory.
- Use `lib` for code that is not app-specific and could later be extracted into a gem.
- Use `app/jobs` for code that doesn't need to return anything and can be run asynchronously.
- Use `def self.method`, not the `scope :method` DSL. [#643](https://github.com/thoughtbot/guides/pull/643)
- Use the default `render 'partial'` syntax over `render partial: 'partial'`.
- Use `link_to` for GET requests, and `button_to` for other HTTP verbs.
Expand Down

0 comments on commit 4cbcfdc

Please sign in to comment.