Skip to content

Instantly share code, notes, and snippets.

View lando2319's full-sized avatar

Mike Land lando2319

View GitHub Profile
#Gemfile
group :assests do
...
gem 'jquery-ui-rails'
end
#app/assets/javascripts/application.js
//= require jquery.ui.datepicker
#app/assets/javascripts/message.js.coffee
<%= text_field_tag "outgoing_card[email]", nil, :placeholder => "email a friend" %>
<form id="approve_bg">
<input type="checkbox" id="approve_bg_check">
Check the box to certify that the information below is accurate
</form>
@lando2319
lando2319 / git_trash
Created September 13, 2013 20:38
trash all uncommitted changes
git checkout -- .
#view
Who's In?
<table>
<tr>
<td><h4>Name</h4></td><td><h4>Email</h4></td><td><h4>Number of Voting Shares</h4></td><td>
<%= form_tag(invites_path) do %>
<% 3.times do %>
<%= render 'invites/project_member_form' %>
<% end %>
<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>
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
<%= 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 %>
<% 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