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
I got the same error , while before my solution I had a space between where
and (
like below
scope :registered , -> { where ( place_id: :place_id , is_registered: :true ) }
after i removed the space between where
and (
like below i made my page working
scope :registered , -> { where( place_id: :place_id , is_registered: :true ) }