Coder Social home page Coder Social logo

himadriganguly / devise-polymorphic-association Goto Github PK

View Code? Open in Web Editor NEW
17.0 5.0 5.0 1.47 MB

A demo project to show the Polymorphic Association using Devise

License: GNU General Public License v3.0

Ruby 93.79% JavaScript 0.81% CoffeeScript 0.73% CSS 4.68%
teachers devise ruby registration-page teacher-details demo rails-application rails polymorphism associations

devise-polymorphic-association's Introduction

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.

devise-polymorphic-association's People

Contributors

himadriganguly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.