Displaying 2 results from an estimated 2 matches for "m000940".
Did you mean:
000940
2008 Apr 09
2
Ruby on Rails drop down help
Hi, I have a really simple problem with ruby on rails. Using a basic
tutorial and scaffolding I have a form with lines like this:
<p><label for="user_game1">Game 1: <%= Game.find(''1'').game %></
label><br/>
<%= text_field ''user'', ''game_1'' %></p>
and I want to change it from a text field to a
2007 Mar 13
13
validates_inclusion_of disabling
Hello all.
I have a problem using validates_inclusion_of. I need to switch off some
validations during a migration period, is there a way?
I tried to use if, with a static method of one of my models, but the
behaviour is something strange
It seems that the static method should be in a string to be evaluated.
And the order of the elements in the if is counting...
:if => (:some_field