Ruby on rails toolbox

2,324 views

Published on

What we need to build Rails apps, dependencies

Published in: Technology
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,324
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
26
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Ruby on rails toolbox

    1. 1. RUBY ON RAILS TOOLBOX
    2. 2. WHAT WE NEED• Core dependencies • Ruby, Ruby Gems, Rails• Plus... • Database, Terminal/IDE, vcs, test frameworks, deployment
    3. 3. CORE DEPENDENCIES• Ruby• Ruby Gems• Rails
    4. 4. RUBY Rails is a frameworkwritten in the Ruby language. Great Rails developers are great Ruby developers.
    5. 5. RUBY ruby -v1.8.7 or higher
    6. 6. RUBY GEMSA gem is a ruby library. gem –v 1.3.7 or higher gem list [sudo] gem install
    7. 7. RVM Not required, but helpfulFor 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. 8. RAILS INSTALLER if you are on Windows... http://railsinstaller.org/ ruby rails git
    9. 9. GEMS• Rails is a gem (and includes many other gems)• Few gems you will use directly • Rails • Bundler • Rake
    10. 10. RAILSRails is distributed as a Ruby gem. gem list rails 3.0.x [sudo] gem install rails
    11. 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. 12. RAKERake 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. 13. OUR TOOLBOX• Database• Command line• Source Code Control with Git• Editor / IDE• Test Frameworks• Heroku for Easy Deployment
    14. 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. 15. TEST FRAMEWORKS gem list rspec-rails gem install rspec-rails rspec-rails (2.0.0)
    16. 16. COMMAND LINE Mac/Unix Terminal GitBash on Windows
    17. 17. GIT Git is for source code control. which git (mac, unix) git bash on windowsWhy Git?• Most Ruby and Rails developers use git• Eco-system of tools• Modern Source Code Control
    18. 18. Local Machine
    19. 19. EDITOR / IDE RubyMineTextMate (Mac-only) Komodo (free)
    20. 20. HEROKU• Simple cloud hosting• Web sign-up for free account: heroku.com [sudo] gem install heroku
    21. 21. OUR TOOLBOX• Core dependencies • Ruby • Ruby Gems • Rails (gem)• Additional Tools • Database • Terminal / git bash on windows • Git • Rake (gem) • Test Frameworks • rspec, rspec-rails • Heroku (for deployment)

    ×