mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-28 03:34:22 -04:00
Fix one-argument calls to link_to.
Fixes broken tests.
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
%p
|
%p
|
||||||
%b Where:
|
%b Where:
|
||||||
=link_to "#{@planting.owner}'s", @planting.owner
|
=link_to "#{@planting.owner}'s", @planting.owner
|
||||||
= link_to @planting.garden.name
|
=link_to @planting.garden.name, @planting.garden
|
||||||
- if defined?(@planting.owner.location)
|
- if defined?(@planting.owner.location)
|
||||||
= "(#{@planting.owner.location})"
|
= "(#{@planting.owner.location})"
|
||||||
%p
|
%p
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
.span6
|
.span6
|
||||||
.well
|
.well
|
||||||
%h3
|
%h3
|
||||||
= link_to @planting.crop
|
= link_to @planting.crop, @planting.crop
|
||||||
- if can? :create, Planting
|
- if can? :create, Planting
|
||||||
= link_to 'Plant this', new_planting_path, :class => 'btn'
|
= link_to 'Plant this', new_planting_path, :class => 'btn'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user