in my layout i have:
-if controller.action_name == 'index'
= controller.action_name.titleize
however, i wanted to implement that inline in my title
%title= controller.action_name == 'index' ?
controller.action_name.titleize
the latter does not work, and i have tried a variety of different
syntaxes, but i am just not having any success. i am releatively new
to ruby, and a noob with haml, so hoepfully there is something obvious
i am overlooking.
thanks!
--
You received this message because you are subscribed to the Google Groups "Haml" group.
To post to this group, send email to ha...@googlegroups.com.
To unsubscribe from this group, send email to haml+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/haml?hl=en.
> > haml+uns...@googlegroups.com <haml%2Bunsu...@googlegroups.com>.
To unsubscribe from this group, send email to haml+uns...@googlegroups.com.
%title= 'Site Name :: ' + controller.action_name == 'index' ?
controller.action_name.titleize
> > haml%2Bunsu...@googlegroups.com<haml%252Buns...@googlegroups.com>
To unsubscribe from this group, send email to haml+uns...@googlegroups.com.