I am using RubyMine
with rails 3.2.12
and I am getting following deprecated warning in my IDE. Any Idea How can I solve this deprecated warning?
find(:first) and find(:all) are deprecated in favour of first and all methods. Support will be removed from rails 3.2.
Best Answer
I changed my answer after @keithepley comment
You can read more from this locations
deprecated statement
better version
best version (1)
best version (2)