"For every other project, the requirement of using SSL/HTTPS crops up. And I'm sure, just like me, you were annoyed that there doesn't seem to be a simple way to test your SSL stuff in your local development environment.
Well: Not any more. Here's how you set up your local Rails environment so that you can use SSL in development if you want or need to."
The Manifest
The keystone of the asset pipeline is the manifest file. By default, Rails creates one for stylesheets (app/assets/stylesheets/application.css) and JavaScript files (app/assets/javascripts/application.js). This file uses directives to declare dependencies in asset source files.
"Ruby is a language with a set of powerful features - the most powerful arguably being Blocks, Procs, and Lambdas. In short, these features allow you to pass code to a method and execute that code at a later time. Despite regularly using these features, many developers don't fully understand the subtle differences between them."
"State Machine comes to the rescue when models in your application need statuses and events.
There is a #state_machine gem for #ruby.
I recommend you to spend some time studying basics before you start using it"
When it comes to web development, Sinatra is amazingly flexible. Unlike Rails, it isn't opinionated in the slightest and basically lets you make all the design decisions.
Ok, so you are using Sublime Text 2 and you can use Cmd-B to execute ruby code, but that ruby code won't be executed using under the environment dictated by the .rvmrc in the project which is a pity. The same goes for RSpec, where you usually want to use bundle exec rspec in addition to .rvmrc.
I'm going to talk first on how to get regular ruby + RVM from Sublime Text 2 and then I'll jump onto executing RSpec together with RVM and Bundler from Sublime Text 2.