Value of an instance variable from selection list

Hey guys, I have this code:

<%= select(“map”,{}, %w{Google MapQuest})%> in a view.

I then do @mapProvider = params[:map] in my action.

Then in the next view I print out <%= @mapProvider %>

It gives me the right selected value. But how can I check if its equal
to “Google” or “MapQuest” ?? Is there like a toString method in Rails
like in Java ??

regards.

Anyone ???

Swaraj S. wrote:

Anyone ???

Got it :slight_smile: … nvm …