Rails indentation convention

85 views Asked by At
 <%= link_to 'Foo',
 {:contoller  => 'bar',
 :id => 'baz.id' %>
 }

There is no consensus amongst my peers as how this should be indented. I'd like to know myself so that I am not writing code the wrong way.

1

There are 1 answers

4
Brad Werth On

<%= link_to 'Foo', use_named_routes_for_crying_out_loud, id: baz.id %>