diff --git a/app/controllers/static_pages_controller.rb b/app/controllers/static_pages_controller.rb
index e401cb0..b9ec442 100644
--- a/app/controllers/static_pages_controller.rb
+++ b/app/controllers/static_pages_controller.rb
@@ -1,3 +1,4 @@
class StaticPagesController < ApplicationController
+ before_action :authenticate_user!
def home; end
end
diff --git a/app/views/layouts/_navbar.html.erb b/app/views/layouts/_navbar.html.erb
index 06c4110..fcaab1d 100644
--- a/app/views/layouts/_navbar.html.erb
+++ b/app/views/layouts/_navbar.html.erb
@@ -11,8 +11,6 @@
- - <%= link_to "Bikes", bikes_path %>
- - <%= link_to "Clients", clients_path %>
- <%= if current_user
link_to "Sign Out", destroy_user_session_path, method: :delete
else
diff --git a/app/views/static_pages/home.html.haml b/app/views/static_pages/home.html.haml
index 1282d94..cf72743 100644
--- a/app/views/static_pages/home.html.haml
+++ b/app/views/static_pages/home.html.haml
@@ -5,10 +5,10 @@
- else
= link_to "Sign in", new_user_session_path
%br
- = link_to "Bikes", bikes_path
+ = link_to "View All Bikes", bikes_path
%br
- = link_to "Clients", clients_path
+ = link_to "Freecyclery Clients", clients_path
%br
- = link_to "Print Bikes", print_select_bikes_path
+ = link_to "Print Sale Bike Labels", print_select_bikes_path
%br
- = link_to "Agencies", agencies_path
+ = link_to "Freecyclery Agencies", agencies_path
diff --git a/lib/tasks/dummydata.rake b/lib/tasks/dummydata.rake
index 0b84802..311e806 100644
--- a/lib/tasks/dummydata.rake
+++ b/lib/tasks/dummydata.rake
@@ -43,7 +43,7 @@ namespace :db do
mechanic: Faker::Name.first_name
}
end
-
+
puts "creating a new user"
user = User.new(email: "user@example.com", password: "password").save