Here are some useful places to look if you become stuck or are looking for inspiration.
###Rails Guides
Great reference material for beginners with walkthrough examples.
###Rails Docs
Here are some useful places to look if you become stuck or are looking for inspiration.
###Rails Guides
Great reference material for beginners with walkthrough examples.
###Rails Docs
This written tutorial is a concise version of this tutorial, which covers building a payment system into a Rails app using Stripe.js. It assumes a basic familiarity with Ruby on Rails, Git and the command-line.
This written tutorial covers building a payment system into a Rails app using Stripe.js. It assumes a basic familiarity with Ruby on Rails, Git and the command-line.
There is a slightly contracted version of this tutorial available here.
Turbolinks are Rails magic. Rails makes rendering pages almost instantaneous for pushState supporting browsers with Tubolinks.
With Turbolinks turned on <a></a>
tags that link to internal pages (other pages in your app) don't make a normal request that causes a page load. In stead an asynchronous request fetches the page from the server and window.history.pushState
is invoked to replace the <body></body>
tags of the current page and their contents.
Turbolinks also caches 10 page loads. That means the last ten pages of your app that your users have visited will be fetched directly from the server when a link is clicked, the request never has to touch the Rails stack, unless it's loading dynamic content.
#Command-line Basics
This is an introduction to the command-line interface. It's for complete beginners.
#####This is for you if you are interested in...
######tl;dr
$ curl -sSL https://get.rvm.io | bash -s stable && source ~/.rvm/scripts/rvm # Get latest Ruby using RVM
$ gem install rails # Get Rails
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" # Get Homebrew
$ brew install postgresql # Get Postgresql
$ brew install git # Get Git
#Setting up your computer for Ruby on Rails on Mac
#####tl;dr
$ curl -sSL https://get.rvm.io | bash -s stable && source ~/.rvm/scripts/rvm # Get latest Ruby using RVM
$ gem install rails # Get Rails
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" # Get Homebrew
$ brew install postgresql # Get Postgresql
$ brew install git # Get Git