super simple question here, yet can't seem find definitive answer.
i'm working page list of links lead different areas of page. know how regular html (with "name" field) i'm not sure how in haml. started working short time ago. tried doing this, isn't working.
.li = link_to 'information', '#info'
the section i'm trying link down to:
.h2 information { name: 'info' }
there's weird scarcity of info regarding how solve this? if point me in right direction, i'd appreciate it.
rather this:
.h2 information { name: 'info' }
you want this:
.h2{name: 'info' } information
the attribute hash needs right next class name. generates:
<div class='h2' name='info'>information</div>
with name
attribute. in code { name: 'info' }
included part of content of div.
Comments
Post a Comment