Error: haml syntax error, unexpected keyword_ensure, expecting $end?

First, you can use . Class and id directly, they're a shortcut for %div. Class and %div#id.

Up vote 0 down vote favorite share g+ share fb share tw.

Have converted devise new session from erb to Haml but doens't work, this is the code: %div.row. Show-grid %div. Span8.

Offset7 %h1 submit "Sign up" and this is the originally erb code: .

First, you can use . Class and #id directly, they're a shortcut for %div. Class and %div#id Second, this error is usually triggered in a "block" of code, as in: - if cond =# instr or - form_for(options) do |f| =# instr Giving us the error line would help.

But I'd say you messed up with indentation in one of said code blocks. EDIT Oh I get it. You forgot to indent line 7, = f.

Label :email. Also, %tag = code won't work, you have to either nest it, or do it with %tag= code.

Error is on line 21(the text of line is indicated as 0), but the page has 17 lines of code whitout any line space, or empty new lines – Angelbit Jan 14 at 11:42 Post was edited. – ksol Jan 14 at 11:49 @Angelbit may be the problem with your application.html. Haml file?

– Nikita Beloglazov Jan 14 at 11:51 @Katen Thanks, now works, but this problem is inside line 8 "%div. Input" line 7 is indented. – Angelbit Jan 14 at 11:57 1 Yep, the source of the error was that you were nesting content under a f.label.

But having worked with bootstrap recently, I'm assuming you want you f. Label and your . Input within your .

Clearfix, and your f. Text_field within your . Input – ksol Jan 14 at 12:01.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions