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"}

so that

  <table <%= x.to_html %> >

produces

  <table summary="Standard alerts box" class="alerts" cellspacing="0">

-- 
Posted via http://www.ruby-forum.com/.

-- 
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.

Reply via email to