On Feb 18, 2:30 pm, Ralph Shnelvar <[email protected]> wrote: > Michael Pavling wrote: > > Explain your *problem*, ie: what is it that's causing you to think > > that that hash has to turn into a string; and you may find out that > > your approach isn't the most effective, and that someone suggests a > > more elegant/efficient/robust way to approach it. > > > Regards, > > Michael > > I am creating HTML and want to do something like > > x={:summary=>"Standard alerts box", :class="alerts", :cellspacing="0"} >
content_tag can do that for you: <% content_tag 'table', :class => 'alerts', :cellspacing => '0' do %> <% end %> Fred -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

