Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • validates_inclusion_ofseems to be what I need. But it means that I have to pass the array from the controller to the model. Isn't it weird? Commented Apr 29, 2015 at 14:09
  • Is there a reason I'm missing why this array needs to be defined in the controller? Commented Apr 29, 2015 at 15:09
  • Because the controller makes the request to get the API response (by using a dedicated module). Commented Apr 29, 2015 at 15:38