Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strange behavior with validations of belongs_to #25

Open
bwlang opened this issue Nov 19, 2009 · 2 comments
Open

strange behavior with validations of belongs_to #25

bwlang opened this issue Nov 19, 2009 · 2 comments

Comments

@bwlang
Copy link
Contributor

bwlang commented Nov 19, 2009

In a class with a statement like this:
belongs_to :organism_type

In order to have validation_reflection find the validation you must do
validates_presence_of :organism_type_id

but validatious_on_rails/formtastic needs
validates_presence_of :organism_type

by specifying both you can get things working properly, otherwise it only works server side.

@grimen
Copy link
Owner

grimen commented Nov 19, 2009

OK, will take a look on this as soon as I can (maybe the weekend). Thanks for the research! =)

@bwlang
Copy link
Contributor Author

bwlang commented Nov 19, 2009

by the way... if you specify just :organism_type you can get a strange problem where the select list can't be popped down, (it pops down instantaneously on a click, but then pops back up again)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants