Browse Source

Add link to view bike check list when showing bike

denney-fix-saving-dates
Jason Denney 11 years ago
parent
commit
98b136e4f4
  1. 1
      app/controllers/bikes_controller.rb
  2. 1
      app/views/bikes/show.html.haml

1
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

1
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

Loading…
Cancel
Save