On Dec 30, 5:04 pm, Eduardo Yáñez Parareda <eduardo.ya...@gmail.com>
wrote:
> Well, I've just tested with "none" and 'none' and I've got the same
> error.
>
I think symbol/string confusion is the problem, but not in that way.
Your setter method coerces everything to a string to clearly it
doesn't matter if you pass a string or a symbol to that. However your
getter method forces its return value to be a symbol, which your
validation then tries to compare to a string.
Fred
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment