Coder Social home page Coder Social logo

gamification-library's People

Contributors

cynon avatar ericburns avatar further077 avatar monicasharma1053 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

cynon josephdemma

gamification-library's Issues

Cannot Add New User Through the Form

Something went wrong with the session controller, because I was only able to add a new user through the console (I could add new levels from the form just fine).

Can't create Users anymore.

When attempting to create a user in the Rails console, the following error is thrown:

NoMethodError: undefined method `game_id' for #User:0x43dc310

Password Retrieval

Presently, a user is not able to recover their password if they lose it.

Possible solution:

This task will likely involve creating a form where a user enters their username. Then, be sure to find the email associated with that user. (Be careful when retrieving by username. All of the users for every game are in the same table. You'll need to get the user_id associated with the username, so you don't get a user with the same name in a different game.) Then, send an email to the user with the associated password.

A few other things this might involve are putting a link on the login page that says something like "Forgot your password?" This can link to the new password retrieval form. When the form is completed, you might be able to show a page that says something like "Your password is waiting for you in your inbox!"

Deleting a Friendship causes the friendship page not to load.

The way friendships are set up won't allow :dependent => destroy to work in the User table. This means if you delete a user, his/her friendships are not deleted and when you go to the Friendship Index, it's looking for that user that was deleted, can't find it, and crashes.

Inventory has the wrong association with User.

Inventory is a has_one relationship, but needs to be a has_many, because they will have lots of badges, not just one. (The table is just like the Email table, so it should have the same kind of relationship.)

We should be able to call:

User.find(1).inventories

This would list off the badges.

(We can currently call User.find(1).emails to get all the emails.)

Given the current relationship, however, we can only call User.find(1).inventory, which returns the first badge and none of the others.

Users should be authenticated by game.

At the moment, you can create a game (G1) and a user for G1 (UG1). Then, you can create a second game (G2). When you log in to G1, you can access G2 with UG1. This should not be possible.

Javascript components of Twitter Bootstrap don't work.

The Javascript components of the Twitter Bootstrap SASS implementation, using the "bootstrap-sass" Gem, don't appear to be working. It was supposed to work by adding "//= require bootstrap" to the application.js file.

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.