Giter Club home page Giter Club logo

basketballapp's Introduction

BasketballApp

Mobile app to collect basketball stats

5/26/13

did git pull origin master // to get any updates to remote repo git diff master origin/master // to check for any differences, did not expect any but got some!

created addModels branch

basketballapp's People

Contributors

floresflyingcircus avatar mcelaney avatar

Watchers

James Cloos avatar  avatar

basketballapp's Issues

Trying to add a new stat

Added player, game, stat models.

Can add new player and game from browser.

http://0.0.0.0:3000/stats
Can't add new set of stats
Can't mass-assign protected attributes: player

Stat model belongs_to player
Player model has_many stats

Any suggestions??

Working on user interface to enter stats

I was trying out different ways to enter stats on "New stat" page - primarily selecting player.

Dynamically added buttons / radio buttons.

  • set player name on button
    <% @players = Player.all %>
    <% @players.each do |player| %>
    <%= player.name %>
    <% end %>

Tried button_to but could not get it to work for selecting player with buttons.

Need to understand better how selection of player in dropdown is made - some magic is happening in f.collection_select.

I feel like this was a lot of trial and error and I need to go back to a tutorial that addresses the following basic concepts:

 * set active player variable when button clicked
    tried to use button_to
    tried to add flash message
 * +1 buttons for adding stats
 * generate totals for stats
 * add validation for no player or stat entered

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.