Episode 3 - Adding a brand

Episode-3-adding-a-brand

Click on image above for a preview

Released: Sep 02, 2009, Running time: 19 min

In this episode:

Adding a Brand to be monitored by Brandizzle.

Tags: factory-girl, rspec, cucumber, mockups

Add to cart$5.00
  • Share

In this episode we go through the BDD cycle to add the feature of creating BrandS in Brandizzle.

Steps:

  1. Generating the Brand model
  2. Writing the BrandsController
  3. Adding FactoryGirl to create brands in specs
  4. Creating views to render brands.

Screenshots

  • Vlcsnap-2009-09-02-21h28m59s89
  • Vlcsnap-2009-09-02-21h29m10s200
  • Vlcsnap-2009-09-02-21h29m33s162
  • Vlcsnap-2009-09-02-21h29m44s0
  • Vlcsnap-2009-09-02-21h30m15s73

2 comments

Can you explain “migrate” command/alias you guys use? Is this a combination of “rake db:migrate && rake db:test:clone”?

In reply to takaaki

Can you explain “migrate” command/alias you guys use? Is this a combination of “rake db:migrate && rake db:test:clone”?

Yes, that is the exact alias for migrate. It is what Ryan Bates uses in Railscasts.

You can find this alias and a bunch of other command-line goodies in Ryan Bates’ dotfiles on github.

Commenting is disabled.