Mathjax javascript librry setup

Ruby TutoRails Notes

Ruby & Rails Tutorials

Introduction

  • Structured into 3 sections:
    • Wagon
      • The generic basics ….
    • Rails
      • The meat of the course
      • Ruby, Ruby on Rails, HTML, CSS, SCSS, Javascript, JQuery, Ajax, Heroku
      • Building your resume site
    • Steam
      • Advanced stuff
  • Tutorails is the main site for the course
  • Tutorails Google Group
  • Tutorails Google Calendar

Wagon

  • The generic basics ….

  • You should create a separate RVM gemfile for every single application. So you can have a separate environment for each application, and keep the environments independent.

  • Note that when installing Posgress on MacOS by using Postgres.app, you need to add the bin folder inside the application package to your path to have access to the Postgres commands. (Typically the path will be something like /Applications/Postgres.app/Contents/MacOS/bin)

Basic Ruby Tutorial

  • use irb, the Interactive Ruby Shell as the REPL
  • see TutorialsPoint Ruby Tutorial for a good introductory tutorial on Ruby, including IRB
  • Every line evaluates to a value, which might be nil
  • Arrays:
    • a = [“Casy”, 3, 34.5, “WTF”]
    • a.size
    • a.reverse
    • a[0]
    • a.join(“,”)
  • Hash (the workhorse of Ruby data structures)
    • b = { :name => “Bill Bourne”, 34 => “Twenty-Three” }
    • b = { name: “Bill Bourne”} # is a short form for a hash, if you are using symbols
    • Note that :name is a symbol
    • b[34]
    • b[:name]

Rails

  • Ruby, Ruby on Rails, HTML, CSS, SCSS, Javascript, JQuery, Ajax, Heroku
  • Building your resume site

Steam

  • Advanced stuff

Comments