Ruby on Rails Sunday, May 8, 2016

I don't think you're missing anything. If all you're trying to do is
constrain a value to a finite number of choices, then what you're
describing will work fine.

The SO responses appear to be describing a scenario where your select
options are dynamically created by user input. If that isn't your
scenario, then it's probably overkill.

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/cb0b43d7b639ca72d934dc886c3db4c6%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment