Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Building rails apps, the missing parts

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on. →

Building rails apps, the missing parts

Talk given @ CoderFactory (https://coderfactory.com/) on 19th May 2016

Avatar for Sameera (Sam)

Sameera (Sam)

May 19, 2016

More Decks by Sameera (Sam)

Other Decks in Programming

Transcript

  1. SETTING UP YOUR APP Set up a ruby version manager

    (E.g ) Use environment variables to managere credentials (e.g ) Have a valid .gitignore file rvm dotenv
  2. # a p p / m o d e l

    s / u s e r . r b d e f i s A d m i n a = n i l i f a d m i n a = t r u e e l s e a = f a l s e e n d r e t u r n a e n d Dont
  3. or if the admin is a boolean column in the

    DB # a p p / m o d e l s / u s e r . r b d e f a d m i n ! a d m i n . n i l ? e n d # a p p / m o d e l s / u s e r . r b a d m i n ? Do