This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Gemfile | |
| group :assests do | |
| ... | |
| gem 'jquery-ui-rails' | |
| end | |
| #app/assets/javascripts/application.js | |
| //= require jquery.ui.datepicker | |
| #app/assets/javascripts/message.js.coffee |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%= text_field_tag "outgoing_card[email]", nil, :placeholder => "email a friend" %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <form id="approve_bg"> | |
| <input type="checkbox" id="approve_bg_check"> | |
| Check the box to certify that the information below is accurate | |
| </form> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git checkout -- . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <td><%= select_tag "personal_stat[user_id]", options_from_collection_for_select(@agents, "id", "full_name") %></td> | |
| <td><%= select_tag "persoanl_stat[height]", options_for_select(@available_height), :prompt => "Select Height" %></td> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Changelog for MiCard.Us | |
| Version 1.0.0 - 10.23.13 - Beta | |
| Version 1.0.1 - 10.23.13 - Fixes devise/cancan issues | |
| Version 1.0.2 - 10.24.13 - Add question mark helper and removes restricted as option for privacy settings | |
| Version 1.0.3 - 10.24.13 - Fixes Password reset function | |
| Version 1.0.4 - 10.31.13 - Adds Parent Mailer and Google Analytics Code | |
| Version 1.0.5 - 11.02.13 - Update Analytics code | |
| Version 1.0.6 - 11.08.13 - Adds Crazy Egg, fixes stats bugs | |
| Version 1.0.7 - 11.10.13 - Update Terms and Conditions, Privacy Policy | |
| Version 1.0.8 - 11.16.13 - Fixes validation error on Creating a sub account, other bug fixes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| To copy a file from a dropbox link: | |
| 1. Get the dropbox share link | |
| ex: https://www.dropbox.com/s/pwc5te39av617yl/2013_mlb_batting_stats.txt | |
| 2. get the auth token by copying the direct download link (incognito) | |
| https://dl.dropboxusercontent.com/s/pwc5te39av617yl/2013_mlb_batting_stats.txt?dl=1&token_hash=AAHAYm0X50m2TFAcnh2weDnY2YMZRu3jmnLnOxykE6QWIw | |
| 3. From console: | |
| open('https://dl.dropboxusercontent.com/s/pwc5te39av617yl/2013_mlb_batting_stats.txt?dl=1&token_hash=AAHAYm0X50m2TFAcnh2weDnY2YMZRu3jmnLnOxykE6QWIw') do |player_stat| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%= form_tag ({:controller => "position_game_stats", :action => "create"}), remote: true do %> | |
| <%= file_field_tag "s3_image[image]" %> | |
| <button class="btn fr" data-step="2" data-intro="Input your single game batting stats for your new Micard" data-position="left" type="submit"><i class="icon-check icon-white"></i> Submit</button> | |
| <% end %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <% raise (user.stackup.map { |friend| {tags: [:game]}.merge(PositionGameStat.formatted_total_row(PositionGameStat.where(user_id: friend.id), options.merge({override: {name: friend.full_name}}))) } + | |
| user.mlb_stackup.map { |friend| {tags: [:game]}.merge(MlbBattingStat.formatted_total_row(MlbBattingStat.where(mlb_player_id: friend.id), options.merge({override: {name: friend.mlb_full_name}}))) } + | |
| [{tags: [:highlight]}.merge(PositionGameStat.formatted_total_row(position_stats, options.merge({override: {name: user.full_name}})))]).inspect %> | |
| => | |
| [{:tags=>[:game], :cells=>["kk kk", 37, 6, 0, 0, 0, 0, 0, 0, 0, ".162"]}, {:tags=>[:game], :cells=>["pp pp", 33, 16, 0, 0, 0, 0, 0, 0, 0, ".485"]}, {:tags=>[:game], :cells=>["Mike` Land", 0, 0, 0, 0, 0, 0, 0, 0, 0, "N/A"]}, {:tags=>[:game], :cells=>["Mike Adams", 0, 0, 0, 0, 0, 0, 0, 0, 0, "N/A"]}, {:tags=>[:game], :cells=>["Jeremy Affeldt", 0, 0, 0, 0, 0, 0, 0, 0, 0, "N/A"]}, {:tags=>[:high |