6. RUBY GEMS
A gem is a ruby library.
gem –v
1.3.7 or higher
gem list
[sudo] gem install
7. RVM
Not required, but helpful
For managing multiple versions of Ruby and multiple
collections of gems "rvm gemset"
rvm install 1.9.2
rvm use 1.9.2
rvm gemset create rails3
rvm use 1.9.2@rails3
echo "rvm use 1.9.2@rails3" > .rvmrc
8. RAILS INSTALLER
if you are on Windows...
http://railsinstaller.org/
ruby
rails
git
9. GEMS
• Rails is a gem (and includes many other gems)
• Few gems you will use directly
• Rails
• Bundler
• Rake
11. BUNDLER
Bundler manages gem dependencies
(and is itself a gem)
optional for Rails 2, required for Rails 3
gem list bundler
bundler (1.0.0)
12. RAKE
Rake is “make” for Ruby. Rails requires rake.
Rake is distrubted as a gem.
gem list rake
0.8.7 or higher
[sudo] gem install rake
13. OUR TOOLBOX
• Database
• Command line
• Source Code Control with Git
• Editor / IDE
• Test Frameworks
• Heroku for Easy Deployment
14. DATABASE
• We will use SQLite in Class
• You may use MySQL or PostgreSQL
(if you can handle installation)
• Rails supports many other databases also
15. TEST FRAMEWORKS
gem list rspec-rails
gem install rspec-rails
rspec-rails (2.0.0)
16. COMMAND LINE
Mac/Unix Terminal
GitBash on Windows
17. GIT
Git is for source code control.
which git (mac, unix)
git bash on windows
Why Git?
• Most Ruby and Rails developers use git
• Eco-system of tools
• Modern Source Code Control