Skip to content
This repository has been archived by the owner on Jan 15, 2020. It is now read-only.

aokolish/active-record-shortcuts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published