Re: I think options_for_select is backwards

— CSN [email protected] wrote:

BTW, is there a simple way to swap a hash’s keys and
values (keys become values and vice versa). Probably
with .each ?

Ah, .invert does the trick!


Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs