Frage

I followed this screencast to make a erb:to:haml rake task: http://teachmetocode.com/screencasts/creating-a-rake-task-to-convert-erb-to-haml/

I backed everything up with git and then ran it, and it did the job beautifully, but now my pages aren't loading.

Here's the rake task from the screencast, my gemfile, the page in haml, the error, and also the output of 'bundle install' at the terminal.

I'm stumped for now.

--

Forgot gist earlier with errors : https://gist.github.com/2820027

War es hilfreich?

Lösung

As Buck noticed, the line 67 does not contain valid HAML code:

  - if @cart
    = hidden_div_if(@cart.line_items.empty?, id: 'cart') do
    = render @cart
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top