Hi, i'm new to rails.
i'm trying to get some results from table in a controller using the limit method.
I did that on the controller:
@articles = Article.limit(5)
And i got NoMethodError exception : undefined method `limit'
But when i did it that way it worked:
@articles = Article.all(:limit => 5)
Although i saw the first method on ror guides, why it didn't work for me?