validation - Rails custom validator not working in console only -


i have custom validator dimensions_validator in app/validators.

works fine in app in development. when bring rails console , try load model, pngpic.count, argumenterror: unknown validator: 'dimensionsvalidator'. gives? how console different webrick server?

i've restarted console few times, no luck.

you can check out threads , compare own.

rails 3, unknown validator: 'emailvalidator'

where should rails 3 custom validators stored?


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -