Skip to content
This repository has been archived by the owner. It is now read-only.
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
bin
 
 
 
 
db
 
 
lib
 
 
log
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Active Record Shortcuts (demo rails app)

This is just a tiny rails application demonstrating how you can set up active record associations that span several models to create a 'short cut'.

If you want to run the code, run the following:

bundle install
bin/rake db:setup
bin/rails console

The seeds.rb file will set you up with a few orders and a user. You can then play around with the models to get from a user to the products they've ordered, or from an order to it's products.

For more info check out this blog post I wrote.

About

No description, website, or topics provided.

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.