diff --git a/app/controllers/site_controller.rb b/app/controllers/site_controller.rb index 9004665..4290aa9 100644 --- a/app/controllers/site_controller.rb +++ b/app/controllers/site_controller.rb @@ -1,5 +1,6 @@ class SiteController < ApplicationController def index + @bike = current_user.bike end end diff --git a/app/views/bikes/new.html.haml b/app/views/bikes/new.html.haml index 76d7e65..eb652a9 100644 --- a/app/views/bikes/new.html.haml +++ b/app/views/bikes/new.html.haml @@ -1,3 +1,5 @@ +%a{ class: "btn btn-default btn-lg", href: root_path} + %span{ class:"icon-home"} %h2 Add Bike %p diff --git a/app/views/bikes/show.html.haml b/app/views/bikes/show.html.haml index f165e35..7f82cca 100644 --- a/app/views/bikes/show.html.haml +++ b/app/views/bikes/show.html.haml @@ -1,3 +1,5 @@ +%a{ class: "btn btn-default btn-lg", href: root_path} + %span{ class:"icon-home"} %h2 #{@bike.shop_id}: #{@bike.bike_brand} %h2 #{@bike.model} diff --git a/app/views/site/index.html.haml b/app/views/site/index.html.haml index 6f93462..1877017 100644 --- a/app/views/site/index.html.haml +++ b/app/views/site/index.html.haml @@ -9,10 +9,10 @@ %p %a{class: "btn btn-lg btn-block btn-primary", href: new_bike_path} Add Bike -%p Your Bikes: -%ol - %li Bike 1 - %li Bike 2 +- if !@bike.nil? + %p + %a{class: "btn btn-lg btn-block btn-primary", href: bike_path(@bike)} View Your Bike + %p %p