validation inclusion error in production working in development; selection Not In the List

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

validation inclusion error in production working in development; selection Not In the List

fugee ohu
model:
REPRESENTS_TYPES = ["Individual","Publicity firm","Record label"]
  validates :represents, inclusion: REPRESENTS_TYPES


form:
  <div class="field">
    <%= f.label :represents %><br>
    <%= f.select :represents, User::REPRESENTS_TYPES, prompt: ('Select') %>
  </div>

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/c9382a59-ea0e-4208-834f-d360d1dbb192%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...