Forum: Ruby on Rails value of an instance variable from selection list

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Swaraj S. (Guest)
on 2007-01-18 08:29
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 ??

Swaraj S. (Guest)
on 2007-01-19 00:53
Anyone ???
Swaraj S. (Guest)
on 2007-01-19 06:25
Swaraj S. wrote:
> Anyone ???

Got it :) ... nvm ...
This topic is locked and can not be replied to.