ActiveRecord::RecordNotFound Couldn't find Category with 'id'=

ActiveRecord::RecordNotFound

in StoreController#catalog

Couldn’t find Category with ‘id’=

private # Use callbacks to share common setup or constraints between actions. def set_category @category = Category.find(params[:id]) end

nevermind, solved i was using the syntax taken from rake routes in my routes.rb