I just came across something that I have to do
find_or_create
or
where(attributes).first_or_create
as this post suggests.
But there's something I have been wondering
Is there an way to determine which action was triggered? (Because I want to display proper notice if it's created) BTW. I'm using Ruby 1.9.3
Thanks in advance.