Permalink
Browse files

Merge pull request #30 from nzbrn/small_tidy_up

Small tidy up
  • Loading branch information...
2 parents 62cffb6 + 329f5b2 commit 85d79198d82fe9c4abba043b081069d95068aed5 @kaleworsley kaleworsley committed Mar 13, 2012
Showing with 3 additions and 2 deletions.
  1. +2 −1 app/controllers/users_controller.rb
  2. +1 −1 app/views/observations/_form_fields.html.erb
View
3 app/controllers/users_controller.rb
@@ -271,7 +271,8 @@ def dashboard
end
def edit
- current_user.phone_numbers.build
+ up_to_three = (3-current_user.phone_numbers.count) < 1 ? 1 : 3-current_user.phone_numbers.count
+ up_to_three.times {current_user.phone_numbers.build}
end
# this is the page that's shown after a new user is created via 3rd party provider_authorization
View
2 app/views/observations/_form_fields.html.erb
@@ -48,7 +48,7 @@
</div>
<div class="field">
<%= o.label(:number_individuals, 'Number of individuals') %>
- <%= o.text_field(:number_individuals) %>
+ <%= o.text_field(:number_individuals, :size => 4) %>
</div>
<div class="field">
<%= o.label(:sought_not_found, 'Sought but not found') %>

0 comments on commit 85d7919

Please sign in to comment.