Ruby-on-Rails-3

Tagged posts

Find or create by and its usages in Rails 3

Oct 20, 2012 - Daniel Viklund

One method that I frequently use in Rails is the find_or_create_by_* method ( If you can call it one method since it comes in so many variations ). As it implies, this method will try to find a record from one or many attributes and create it if it does not find it. But like so many other functions, it has undergone some changes along the way.

Read More >>

Tags: