Pick a random element


/ Published in: Rails
Save to your folder(s)

in your model, add a def
to pick a record where an option (in my case lenght) is equal to 1

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.