From 97ce62389c416a7707e8bc812db3b9095a5a32f7 Mon Sep 17 00:00:00 2001 From: Miles Gould Date: Mon, 25 Feb 2013 14:34:37 +0000 Subject: [PATCH] Fix one-argument calls to link_to. Fixes broken tests. --- app/views/plantings/show.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/plantings/show.html.haml b/app/views/plantings/show.html.haml index 8077af9ea..7e2cdc63d 100644 --- a/app/views/plantings/show.html.haml +++ b/app/views/plantings/show.html.haml @@ -11,7 +11,7 @@ %p %b Where: =link_to "#{@planting.owner}'s", @planting.owner - = link_to @planting.garden.name + =link_to @planting.garden.name, @planting.garden - if defined?(@planting.owner.location) = "(#{@planting.owner.location})" %p @@ -23,7 +23,7 @@ .span6 .well %h3 - = link_to @planting.crop + = link_to @planting.crop, @planting.crop - if can? :create, Planting = link_to 'Plant this', new_planting_path, :class => 'btn'