Ruby on Rails
Tuesday, May 31, 2011
I tried this which doesn't seem to do anything either:
page[k].set_style :z_index => 20
I believe that the following syntax is valid:
page[k].set_style :'z-index' => 20
I tried this:
C:\Users\Laurence>irb
irb(main):001:0>
irb(main):002:0*
irb(main):003:0* x = :'z-index'
=> :"z-index"
irb(main):004:0> x.class
=> Symbol
irb(main):005:0>
irb(main):009:0> x
=> :"z-index"
irb(main):010:0>
--
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