background preloader

Next

Facebook Twitter

Learn Web Development with the Ruby on Rails Tutorial. Michael Hartl Contents Foreword My former company (CD Baby) was one of the first to loudly switch to Ruby on Rails, and then even more loudly switch back to PHP (Google me to read about the drama). This book by Michael Hartl came so highly recommended that I had to try it, and the Ruby on Rails Tutorial is what I used to switch back to Rails again. Though I’ve worked my way through many Rails books, this is the one that finally made me “get” it. Everything is done very much “the Rails way”—a way that felt very unnatural to me before, but now after doing this book finally feels natural.

The linear narrative is such a great format. Enjoy! Derek Sivers (sivers.org) Founder, CD Baby Acknowledgments The Ruby on Rails Tutorial owes a lot to my previous Rails book, RailsSpace, and hence to my coauthor Aurelius Prochazka. About the author Michael Hartl is the author of the Ruby on Rails Tutorial, the leading introduction to web development with Ruby on Rails. Copyright and license 1.1 Introduction. RPi Ruby on Rails. Installing Ruby on Rails on Raspberry Pi [Please note that raspbian (and, probably, the other current pi oriented linux distros) already have pre-compiled packages for Ruby on Rails; you can find these by checking with apt-cache search ruby | grep rails. You only need the instructions below if those packages are unavailable.] This is a guide to install Ruby on Rails on the Raspberry Pi computer running Debian "squeeze".

It will also be useful to people who just require a Ruby installation. The guide can be followed by anyone if it all goes right, but when things go wrong, it is often difficult to see what the problem is. The guide has been developed/tested using debian6-19-04-2012. The installation was all done from the basic (pre startx) command prompt. . # Install prerequisites sudo apt-get install -y git curl zlib1g-dev subversion You might come across the error '404 not found', then try update your APT package index: # Update APT package index sudo apt-get update Now you should have ruby: Software development - Setting up a Ruby on Rails Server.

Ruby on rails - heroku-like workflow on personal server. UpTrendingLLC/cartman. How we migrated Beanstalk to Rails 4 and Ruby 2 — Beanstalk. In October 2011 the groundwork began to migrate Beanstalk to Rails 3, the latest version of Rails at the time. In a few weeks it became apparent that the migration would take much more effort than we originally anticipated and the work had been scrapped.

Since then the idea to migrate to newer Rails came up several times during our meetings. However, each time the decision was to postpone the migration to deal with more pressing updates. In March we scheduled the migration once again and the plan was not only to update the Rails version from 2.3 to 4.0, but also bump the Ruby version from 1.8 to 2.0, because 1.8 was near its end of life deadline.

We ended up successfully finishing the migration in just eleven weeks. TL/DR of the migration: Migrated from Rails 2.3 (4 years old) to Rails 4. Planning the Migration The new migration was planned much more thoroughly than all of our previous attempts. About Our Application Before the migration Beanstalk was using Rails 2.3 and Ruby 1.8. A startup template for Ruby on Rails 4 applications. Way back in January, I wrote a blog post called “Rails has two default stacks”.

In it, I discussed how people like to customize the defaults that Ruby on Rails gives you. Your company might prefer Postgres/HAML/RSpec, for example, over the default MySQL/ERB/MiniTest. There’s an under-used feature of Rails that allows you to automate the creation of your own stack: templates. Check it: $ rails --help Usage: rails new APP_PATH [options] Options: -r, [--ruby=PATH] # Path to the Ruby binary of your choice # Default: /opt/rubies/ruby-2.0.0-p195/bin/ruby -m, [--template=TEMPLATE] # Path to some application template (can be a filesystem path or URL) Application template?

Anyway, the TL;DR is this: you can write a little script to help initialize a Rails app just the way you want to. Here’s some of the things it gives you out of the box: There are some other features, as well. Check it out on GitHub and vote it up on Hacker News. Developer Book Reviews. In my quest to become developer savvy, I have bought and read a number of books that I'd like to share with you.

Here's the list of books I will comment on today: Head First Java (ISBN-13: 978-0-596-00920-5) by Kathy Sierra and Bert BatesHead First Design Patterns (ISBN-13: 978-0-596-00712-6) by Eric Freeman, Elisabeth Freeman, Kathy Sierra and Bert BatesPython Programming for the Absolute Beginner (ISBN-13: 978-1-435-45500-9) by Michael DawsonHead First HTML with CSS (ISBN-13: 978-0-596-15990-0) by Elisabeth Freeman and Eric FreemanHead First HTML5 Programming (ISBN-13: 978-1-449-39054-9) by Eric Freeman and Elisabeth RobsonHead First jQuery (ISBN-13: 978-1-449-39321-2) by Ryan Benedetti and Ronan CranleyHead First Software Development (ISBN-13: 978-0-596-52735-8) by Dan Pilone and Russ Miles Head First Java was my first Head First book.

I had read parts of other Java books before; but this was the first that I read from cover to cover.