Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

continue cleanup

  • Loading branch information...
commit 780e7bc265db36e5738475d53d6bd0b2388d3ed0 1 parent 0fdcf65
@geraldb geraldb authored
View
2  app/helpers/application_helper.rb
@@ -6,8 +6,8 @@ def powered_by
## todo/fix: use version from wettpool module
content_tag :div do
link_to( 'Sportbook/1', 'https://github.com/geraldb/sportbook' ) + ', ' +
- link_to( "sport.db/#{SportDB::VERSION}", 'https://github.com/geraldb/sport.db' ) + ', ' +
link_to( "sport.db-market/#{SportDB::Market::VERSION}", 'https://github.com/geraldb/sport.db-market' ) + ', ' +
+ link_to( "sport.db/#{SportDB::VERSION}", 'https://github.com/geraldb/sport.db' ) + ', ' +
link_to( "world.db/#{WorldDB::VERSION}", 'https://github.com/geraldb/world.db' ) + ' - ' +
content_tag( :span, "Ruby/#{RUBY_VERSION} (#{RUBY_RELEASE_DATE}/#{RUBY_PLATFORM}) on") + ' ' +
content_tag( :span, "Rails/#{Rails.version} (#{Rails.env})" )
View
2  app/models/point.rb
@@ -21,7 +21,7 @@ class Point < ActiveRecord::Base
belongs_to :user
belongs_to :pool
- belongs_to :round
+ belongs_to :round, :class_name => 'SportDB::Models::Round'
def round_pts_str
buf = ''
View
1  app/views/plays/index.html.erb
@@ -102,6 +102,7 @@
<%= render_game_team1( game ) %>
<% @users.each do |user| %>
+ <!-- fix: use _and_game! - to raise excep if find fails -->
<% tip = Tip.find_by_user_and_pool_and_game( user, @pool, game ) %>
<%= render_tip_score_v2( tip, :show_tips => @show_tips, :show_pts => @show_pts ) %>
View
2  app/views/setup/events/_form.html.erb
@@ -1,4 +1,4 @@
-<%= form_for(@event) do |f| %>
+<%= form_for(@event, :url => events_path()) do |f| %>
<table>
<tr>
View
2  app/views/setup/teams/_form.html.erb
@@ -1,5 +1,5 @@
-<%= form_for(@team) do |f| %>
+<%= form_for(@team, :url => teams_path()) do |f| %>
<% if @team.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@team.errors.count, "error") %> prohibited this team from being saved:</h2>
View
1  db/schema.rb
@@ -159,6 +159,7 @@
t.string "key"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
+ t.boolean "locked", :default => false, :null => false
t.string "type"
t.boolean "calc", :default => false, :null => false
end
Please sign in to comment.
Something went wrong with that request. Please try again.