Browse Source

Louis | Change copy to make actions more clear

master
Loos 10 years ago
parent
commit
f033485c48
  1. 1
      app/controllers/static_pages_controller.rb
  2. 2
      app/views/layouts/_navbar.html.erb
  3. 8
      app/views/static_pages/home.html.haml
  4. 2
      lib/tasks/dummydata.rake

1
app/controllers/static_pages_controller.rb

@ -1,3 +1,4 @@
class StaticPagesController < ApplicationController
before_action :authenticate_user!
def home; end
end

2
app/views/layouts/_navbar.html.erb

@ -11,8 +11,6 @@
<div class="navbar-collapse collapse navbar-responsive-collapse" id='collapse-1'>
<ul class="nav navbar-nav navbar-right">
<li><%= link_to "Bikes", bikes_path %></li>
<li><%= link_to "Clients", clients_path %></li>
<li><%= if current_user
link_to "Sign Out", destroy_user_session_path, method: :delete
else

8
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

2
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

Loading…
Cancel
Save