Pivotal Labs

Main menu

Skip to primary content
Skip to secondary content
  • About
  • Case Studies
  • Team
    • Executives
    • Locations
      • San Francisco (HQ)
      • Boston
      • Boulder
      • Denver
      • London
      • Los Angeles
      • New York
  • Community
    • Blogs
    • Tech Talks
    • Events
  • Careers
    • Lifestyle
    • Principles & Practices
    • Benefits
    • FAQ
    • Apply
  • Contact
    • Press Room
    • Press Releases
    • In The News
    • Press Kit
  • All
  • Labs
  • Standup
  • Tracker

Standup 03/29/2012: Virtual Foreign Keys?

Dirk Kelly
Thursday, March 29, 2012

Interesting

  • Active Record belongs_to will not raise an exception if you haven’t run a migration to create the foreign record column. Instead it will assign a virtual attribute that persists through object reloads, but obviously not a fetch. Watch out!
  • RSpec was not raising an exception when some of our pivots were calling update_attributes with an attribute that didn’t exist. Debugging inline and using the command line will raise exceptions. So again, watch out!
  • The first parameter on an RSpec double is arbitrary in nature, but helps other developers understand what you’re thinking. Keep everyone happy by naming it something useful.
  • Our Pivots dominated at dodgeball last night, with Cathy taking out the other team in a sudden death gladiator round. We’ll be keeping the dream alive Monday next week.

Help

  • Some pivots need after deploy tasks to run on their heroku instances. Suggestions were to check out heroku_san which has support for additional tasks and great hooks (it’s also well tested!)
  • One of the projects is having trouble setting up firesass with the Rails 3.2 asset pipeline and bootstrap-sass gem
  • 0 Shares
  • Share on Facebook
  • Share on Twitter

One comment

  1. Matthew Jording says:

    firesass can be enabled for rails 3.2.x by setting

    `config.sass.debug_info = true`

    in config/environments/development.rb

    March 31, 2012 at 3:02 am

Add New Comment Cancel reply

Your email address will not be published.

Dirk Kelly

Dirk Kelly
New York

Recent Posts

  • Rails and SQL Views – Part 2 – Migrations
  • Rails and SQL Views – Part 1
  • What’s Your Snow Trip Bus Count?
Subscribe to Dirk's Feed

Author Topics

postgres (1)
  • About
  • Case Studies
  • Team
  • Community
  • Careers
  • Contact
  • Labs
  • Events

Contact Us

contact@pivotallabs.com
+1 415-77-PIVOT
TwitterLinkedInFacebook

Pivotal Tracker

Tracker is the award-winning agile project management tool that enables real-time collaboration around a shared, prioritized backlog.
Visit pivotaltracker.com >