Skip to content
Browse files

suggest new players begin with 500

  • Loading branch information...
1 parent f339a93 commit 45c7e1edeadd72385c5fdee45a6cb743e1a7d696 @rab rab committed Jan 31, 2012
Showing with 5 additions and 1 deletion.
  1. +4 −0 app/controllers/players_controller.rb
  2. +1 −1 app/views/players/_form.html.erb
View
4 app/controllers/players_controller.rb
@@ -17,6 +17,10 @@ def update
private
+ def build_resource
+ @player ||= Player.new(:rank => 500)
+ end
+
def scores_over_time
@player.score_history
end
View
2 app/views/players/_form.html.erb
@@ -1,6 +1,6 @@
<%= simple_form_for @player do |f| %>
<%= f.input :email %>
<%= f.input :name, :required => false %>
- <%= f.input :rank, :hint => "Initial novice rating is 250" %>
+ <%= f.input :rank, :hint => "Initial Novice rating is 250, Novice-Elite is 750" %>
<%= f.submit 'Submit' %>
<% end -%>

0 comments on commit 45c7e1e

Please sign in to comment.
Something went wrong with that request. Please try again.