Please use gist or pastie or some similar service to share long code
examples.
Hunt & pecked on my iPhone... Sorry if it's brief!
On Nov 26, 2008, at 7:03 PM, Bharat <[EMAIL PROTECTED]> wrote:
>
> Thanks. Sorry for the long posts. I will try to keep them short.
> Brad, you were right, I got past that, but this illegal nesting
> message I cannot figure out:
>
> - column_div :type => :primary do
> %h2
> Sign In
> - form_tag session_path do
> #standard
> .form_row
> %label{:for => "email"} Email address
> = text_field_tag 'email', nil, :maxlength =>
> Person::MAX_EMAIL
> = set_focus_to 'email'
> .form_row
> %label{:for => "password"} Password
> = password_field_tag 'password', params
> [:password], :maxlength => Person::MAX_PASSWORD
> #openid.form_row
> %label{:for => 'openid_url'} OpenID
> = text_field_tag 'openid_url'
> .form_row
> %label.checkbox{:for => 'remember_me'} Remember me:
> = check_box_tag 'remember_me', '1', true, :class => "checkbox"
> .form_row
> = submit_tag 'Sign in', :class => "button"
> %div{:style => "text-align: center; font-size: 12px; padding:
> 10px;"}
> = link_to "or Sign up", signup_path
> %br/
> -if global_prefs.can_send_email?
> = link_to "I forgot my password!", new_password_reminder_path
> %span#noscript {:style="display:none;"}
> %span#openid_link
> %a{:href => "#", :onclick => "show_openid(); return false;"}
> Login using OpenID
> %span#standard_link
> %a{:href => "#", onclick => "show_openid(); return false;"}
> Login using OpenID
>
> Here is the message:
>
> Illegal nesting: content can't be both given on the same line as %span
> and nested within it.
>
> Extracted source (around line #27):
>
> 24: -if global_prefs.can_send_email?
> 25: = link_to "I forgot my password!",
> new_password_reminder_path
> 26: %span#noscript {:style="display:none;"}
> 27: %span#openid_link
> 28: %a{:href => "#", :onclick => "show_openid(); return
> false;"}
> 29: Login using OpenID
> 30: %span#standard_link
>
> I am impressed, you folks are super helpful. May be I will learn Haml
> yet. I spent the whole day writing this stuff. This is not very
> encouraging. Doe it go like this in the beginning? The manual said
> you will be faster in 20 minutes. It is more like 8-10 hours for me?
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---