On 26 April 2015 at 17:57, Gaohong Wei <gaohong...@gmail.com> wrote: > I have defined an instance variable as Hash in controller. When the instance > variable is retrieved in View, its type is String, and the value is string > too. > Something wrong?
Yes, something is wrong, obviously. Unfortunately it is not possible for us to tell what is wrong unless you show us how you are assigning the value to it and the code that renders it that shows it is a string. Also what is the value of the hash and what does it render as? Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLtuG9%3DMGn1Z84L0saYEkzKp_g0QonJn6BT%2BTA6yS1Lb5Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.