Polymorphic Association using Devise
This is just a demo project to show the Polymorphic Association using Devise. In this project there are two models Teacher and Student, both have two seperate registration page but one single Login page
Features
- Polymorphic Association using Devise
- Two Registration page and Single Login page
- The RSpec is used for Unit Testing and Cucumber for Integration Testing
Drawbacks
The drawback of this project is that after we login in as teacher and go to edit a teacher then we have to provide the password in the passsword field to update teacher details, teacher details cannot be update with blank password field. Same for student.
Requirements
- Ruby version 2.0
- Ruby on Rails version 4.0
Installation
- Download the zipfile of the application and extract
- Open the terminal and move to the folder where the extraction takes place
- run the command
rake db:setup - lastly run
rails server - Open your browser and type
localhost:3000to enjoy the application
CONTRIBUTE
The project can be successful if more people contribute to this project. Or if have any idea you want to implement or think that there is a better way to implement any part of the code please create a pull request and I will do my best to merge appropriately.

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
