Skip to content
This repository was archived by the owner on Aug 21, 2023. It is now read-only.

jcbeaury/user-models

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

user-models

This is an example for managing various user models in a rails app.

There will be one login, but different views based on the user type.

This app uses:

  • Ruby 2.1.2

  • Rails 4.1.4

  • gem 'devise'

  • polymorphic relationships

Basic Structure

There will be a User model that has the basic params for signing in. Each User will belong to one of the following groups:

  • Admin
  • Skier
  • Biker

This is done by creating a model for each of these groups and using a polymorphic relationship to attach it to the User.

Seed data for testing functionality

rake db:seed

This will give you the following users to play with:

The password for each of these is 'password'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors