RoR
RoR

Reputation: 16502

Ruby on Rails 3 Params Hash Question

Let's say we are passing in something like :mash => true

Now inside of params I want to

takeit = params[:mash]

What class is takeit? It's not boolean of course.

Thanks for helping.

Upvotes: 1

Views: 875

Answers (1)

sepp2k
sepp2k

Reputation: 370415

It will be a string.

Upvotes: 2

Related Questions