diff --git a/app/controllers/bikes_controller.rb b/app/controllers/bikes_controller.rb index 792ccfe..e2985d5 100644 --- a/app/controllers/bikes_controller.rb +++ b/app/controllers/bikes_controller.rb @@ -9,6 +9,7 @@ class BikesController < AuthenticatedController def show @bike = Bike.find_by_id(params[:id]) + @task_list_id = @bike.task_list.id end end diff --git a/app/views/bikes/show.html.haml b/app/views/bikes/show.html.haml index 7f82cca..e836177 100644 --- a/app/views/bikes/show.html.haml +++ b/app/views/bikes/show.html.haml @@ -20,3 +20,4 @@ - if !@bike.color.nil? %dt Color %dd{ style: "width: 50px; background-color: ##{@bike.color}; border: black; border-width: 1px; border-style: solid;"} #{@bike.color} +%a{class: "btn btn-lg btn-block btn-primary", href: edit_task_list_path(@task_list_id) } View Checklist