Slide 1

Slide 1 text

Improve Your Rails Development Workflow Ruby Peru meeting - March 26, 2011 Florent Guilleux

Slide 2

Slide 2 text

Disclaimer: mastering your editor and shell are probably the most important things to do to improve your workflow But let's concentrate on tools for today...

Slide 3

Slide 3 text

1. Speed-up application initial setup with a Rails application template

Slide 4

Slide 4 text

2. Automate the launch of commands needed for your application with Terminitor

Slide 5

Slide 5 text

config file example for a Rails project window do before do run "cd ~/projects/demo" end run "git st" run "mate ." tab :name => "server" do run "rails server" end tab :name => "console" do run "rails console" end tab :name => "spork" do run "bundle exec spork" end tab :name => "autotest" do run "bundle exec autotest" end end

Slide 6

Slide 6 text

3. Make your application 10 times faster in development mode with RailsDevelopmentBoost

Slide 7

Slide 7 text

4. Automatically refresh your browser when a file has changed with AutoRefresh

Slide 8

Slide 8 text

5. Improve your rails console with Hirb and Wirble

Slide 9

Slide 9 text

>> Post.all Post Load (0.7ms) SELECT "posts".* FROM "posts" +-----+-------------------------+----------+ | id | created_at | title | +-----+-------------------------+----------+ | 907 | 2009-03-06 21:10:41 UTC | hello | | 906 | 2009-03-06 08:47:04 UTC | world | +-----+-------------------------+----------+ 2 rows in set

Slide 10

Slide 10 text

6. Easily know the attributes/columns of your models with Annotate

Slide 11

Slide 11 text

class LineItem < ActiveRecord::Base belongs_to :product # ... end # == Schema Info # # Table name: line_items # # id :integer(11) not null, primary key # quantity :integer(11) not null # product_id :integer(11) not null # unit_price :float # order_id :integer(11) example of model annotation

Slide 12

Slide 12 text

7. Generate diagrams of a Rails application with Rails ERD or RailRoady

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

8. Open gem code quickly with qwandry

Slide 15

Slide 15 text

No content