My Ruby on Rails project cheatsheet: Stuff I’ve had to look up 100 times

Hello, World.

How to post code on Medium: Mac : command+option+6 | Windows : ctrl+alt+6 | Linux : ctrl+alt+6

Form_for template

Flash message

Link_to

Naming convention for many-to-many join tables

Render partial

Routing

Shortcut to create all CRUD routes for one resource:

Syntax to limit routes with resources:

Validations

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store