Skip to content

Instantly share code, notes, and snippets.

Paul Howard phoward8020

Block or report user

Report or block phoward8020

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
phoward8020 /
Last active Aug 29, 2015
Creating new records with polymorphic associations

Creating new records with polymorphic associations

Step One - Begin with the end in mind:

checkins.create({note:"This is another test"})

Our ultimate goal is to create a checkin record, so start there.

Step Two: Create link to the polymorphable model:

# Some things taken from here
# Set the colours you can use
You can’t perform that action at this time.