Skip to content

Commit 2de7383

Browse files
committed
change to caribbean
1 parent f09e3a3 commit 2de7383

File tree

7 files changed

+624
-14
lines changed

7 files changed

+624
-14
lines changed

app/views/benthic_covers/_form.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<div class="control-group">
5151
<label class="control-label">Habitat Type</label>
5252
<div class="controls">
53-
<%= f.collection_select :habitat_type_id, HabitatType.atlantic_habitats, :id, :habitat_name, { :include_blank => "" } %><br />
53+
<%= f.collection_select :habitat_type_id, HabitatType.caribbean_habitats, :id, :habitat_name, { :include_blank => "" } %><br />
5454
</div>
5555
</div>
5656

app/views/coral_demographics/_form.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<div class="control-group">
5151
<label class="control-label">Habitat Type</label>
5252
<div class="controls">
53-
<%= f.collection_select :habitat_type_id, HabitatType.atlantic_habitats, :id, :habitat_name, { :include_blank => "" } %><br />
53+
<%= f.collection_select :habitat_type_id, HabitatType.caribbean_habitats, :id, :habitat_name, { :include_blank => "" } %><br />
5454
</div>
5555
</div>
5656

app/views/samples/_form.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<div class="control-group">
4141
<label class="control-label">Habitat Type</label>
4242
<div class="controls">
43-
<%= f.collection_select :habitat_type_id, HabitatType.atlantic_habitats, :id, :habitat_name, { :include_blank => "" }, { :class => 'tab_1', :tabindex => "1" } %><br />
43+
<%= f.collection_select :habitat_type_id, HabitatType.caribbean_habitats, :id, :habitat_name, { :include_blank => "" }, { :class => 'tab_1', :tabindex => "1" } %><br />
4444
</div>
4545
</div>
4646

config/deploy/production.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# server "db.example.com", user: "deploy", roles: %w{db}
99

1010
set :stage, :production
11-
server '199.242.232.144', user: 'jeremiaheb', roles: %w{web app}
11+
server '199.242.232.145', user: 'jeremiaheb', roles: %w{web app}
1212

1313

1414
set :default_env, { "PASSENGER_INSTANCE_REGISTRY_DIR" => "/var/run/passenger-instreg" }

config/environments/production.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,5 @@
8484

8585

8686
#config.relative_url_root = "/rvc_data_entry"
87-
config.relative_url_root = "/rvc_data_entry"
87+
config.relative_url_root = "/caribbean_data_entry"
8888
end

db/SupportData/ncrmp_diverlist_2024_carib.csv

Lines changed: 610 additions & 0 deletions
Large diffs are not rendered by default.

db/seeds.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727
#end
2828
#end
2929

30-
#Diver.delete_all
31-
##Diver.connection.execute( 'ALTER SEQUENCE divers_id_seq RESTART WITH 1' )
32-
#open("#{Rails.root}/db/SupportData/ncrmp_diverlist_2024.csv") do |divers|
33-
#divers.read.each_line do|diver|
34-
#DiverNumber, DiverName, UserName, Email, Password, Active, Role = diver.chomp.split(",")
35-
#Diver.create( :diver_number => DiverNumber, :diver_name => DiverName, :username => UserName, :email => Email, :password => Password, :active => Active, :role => Role )
36-
#puts "successfully created #{DiverName}"
37-
#end
38-
#end
30+
Diver.delete_all
31+
#Diver.connection.execute( 'ALTER SEQUENCE divers_id_seq RESTART WITH 1' )
32+
open("#{Rails.root}/db/SupportData/ncrmp_diverlist_2024_carib.csv") do |divers|
33+
divers.read.each_line do|diver|
34+
DiverNumber, DiverName, UserName, Email, Password, Active, Role = diver.chomp.split(",")
35+
Diver.create( :diver_number => DiverNumber, :diver_name => DiverName, :username => UserName, :email => Email, :password => Password, :active => Active, :role => Role )
36+
puts "successfully created #{DiverName}"
37+
end
38+
end
3939

4040
Animal.delete_all
4141
#Animal.connection.execute( 'ALTER SEQUENCE animals_id_seq RESTART WITH 1' )

0 commit comments

Comments
 (0)