Argument Error: The scope body needs to be callable

前端 未结 4 1053
南方客
南方客 2020-12-24 01:24

I\'m working through the \'Ruby On Rails 3 Essential Training\' and have received a problem when using name scopes. When finding records and using queries withing the Rails

4条回答
  •  滥情空心
    2020-12-24 02:01

    Yes, indeed, this is rails 4 way of calling scopes. You'd need to change it, if you're upgrading to Rails 4 from Rails 3.

提交回复
热议问题