Skip to content

Instantly share code, notes, and snippets.

View arthur-littm's full-sized avatar

Arthur Littmann arthur-littm

  • Butternut Box
  • London
View GitHub Profile

Fixing Webpacker 3.3.0 + Rails 5.1.5

Heroku hosting trouble

Heroku may not detect a correct buildpack for your JS dependencies, then you have to set it manually:

heroku buildpacks:add heroku/nodejs -i 1
heroku buildpacks:add --index 2 https://github.com/heroku/heroku-buildpack-ruby
@pel-daniel
pel-daniel / cheatsheet.md
Last active September 11, 2017 20:37
Rails conventions

Rails conventions

General

All filenames are in snake_case following the same conventions

  • Model: singular (e.g. Restaurant)
  • Controller: plural (e.g. RestaurantsController)
  • Table in DB: plural (e.g. restaurants)
  • URL's: all in plural (e.g. /restaurants, /restaurants/:id, /restaurants/new)