3

Hi :)
I'm new to haml and want something like this:

%h1
  =link_to "Home" :root

How could I realize this? Hope you can help me with this :)

Josh Darnell
  • 11,304
  • 9
  • 38
  • 66
optikfluffel
  • 2,538
  • 4
  • 20
  • 27

1 Answers1

6

Try this:

%h1
  = link_to "Home", root_path
D. Simpson
  • 1,882
  • 17
  • 32