Ruby on Rails
Monday, August 29, 2011
Hello,
In HAML, is it possible to get this result:
- link_to "http://www.example.com" do
- "www"
- "example"
- "com"
=> "wwwexamplecom"
So far I've only managed to get:
=> "com"
Which is logical because of the way Ruby blocks work. But, it defeats the HAML purpose of concatenating the things you put underneath each other.
--
http://rubyonrailsdeveloper.nl
-- CmdJohnson
http://rubyonrailsdeveloper.nl
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment