Hash is treated as string in Rails 4.1

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?

On Sun, Apr 26, 2015 at 11:57 AM, Gaohong W. [email protected]
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?

Can’t tell without seeing code.

On 26 April 2015 at 17:57, Gaohong W. [email protected] 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