Thanks, I will try this!
I wonder: Where do I find a specification for this feature? I guess
Rails automatically generates this kind of find_by_... functions for
each attribute in my model, which as "uniqueness" set. Where is this
documented? My biggest problem with rails is getting from the API docs
the information I need.
Just for my understanding: Could you also please explain, why my
original (complicated) version failed?
Ronald
--
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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/354085d79b1882e35595484f902a0268%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment