Ruby on Rails Thursday, March 29, 2012

Oh fun, just found out def validate doesn't quite work like that anymore
in rails3, so never mind on the first question, I need to change my def
validate method.

An example of an association test would still be crazy helpful tho.
Here's what I used to do with spec and shoulda:

it { should have_many(:products).through(:buying_guides_products) }

Any ideas?

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment