[Rails] Rails 4 Postgres Array attribute: how can I ensure that the attribute is an array during validation?

2014-04-11 Thread Moncef Belyamani
Hi, I just started experimenting with the native Postgress array type in Rails 4, and I'm running into an issue I can't figure out. I want the app to raise an error if the value for an array attribute is not an array. Before, when I was using a regular text type for the field, and

Re: [Rails] Rails 4 Postgres Array attribute: how can I ensure that the attribute is an array during validation?

2014-04-11 Thread Jordon Bedwell
Try adding `return false` Thanks, Jordon Bedwell https://envygeeks.com On 4/11/2014 10:18:09 AM, Moncef Belyamani mon...@codeforamerica.orgwrote: Hi, I just started experimenting with the native Postgress array type in Rails 4, and I'm running into an issue I can't figure out. I want the app to