From 62c70f438830720e42a5590027d64af96fb0e383 Mon Sep 17 00:00:00 2001 From: Jason Denney Date: Sat, 8 Dec 2012 16:56:30 -0500 Subject: [PATCH] edit brand show.html --- app/views/bike_brands/show.html.haml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/views/bike_brands/show.html.haml b/app/views/bike_brands/show.html.haml index 39714ef..750f726 100644 --- a/app/views/bike_brands/show.html.haml +++ b/app/views/bike_brands/show.html.haml @@ -7,5 +7,16 @@ %br = bike_brand.brand +%table.table.table-striped + %thead + %tr + %th= model_class.human_attribute_name(:id) + %th= model_class.human_attribute_name(:model) + %tbody + - bike_brand.models.each do |bike_model| + %tr + %td= link_to bike_model.id, bike_model_path(bike_model) + %td= link_to bike_model, bike_model_path(bike_model) + .form-actions = link_to t('.back', :default => t("helpers.links.back")), bike_brands_path, :class => 'btn'