Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/himadriganguly/devise-polymorphic-association
A demo project to show the Polymorphic Association using Devise
https://github.com/himadriganguly/devise-polymorphic-association
associations demo devise polymorphism rails rails-application registration-page ruby teacher-details teachers
Last synced: about 2 months ago
JSON representation
A demo project to show the Polymorphic Association using Devise
- Host: GitHub
- URL: https://github.com/himadriganguly/devise-polymorphic-association
- Owner: himadriganguly
- License: gpl-3.0
- Archived: true
- Created: 2014-08-18T20:18:24.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-18T20:19:54.000Z (about 10 years ago)
- Last Synced: 2024-09-18T01:08:32.116Z (about 2 months ago)
- Topics: associations, demo, devise, polymorphism, rails, rails-application, registration-page, ruby, teacher-details, teachers
- Language: Ruby
- Size: 1.43 MB
- Stars: 17
- Watchers: 5
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
1. Ruby version **2.0**
2. Ruby on Rails version **4.0**## Installation
1. Download the zipfile of the application and extract
2. Open the terminal and move to the folder where the extraction takes place
3. run the command `rake db:setup`
4. lastly run `rails server`
5. Open your browser and type `localhost:3000` to 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.