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

563 views
Skip to first unread message

fugee ohu

unread,
Nov 25, 2015, 4:03:48 PM11/25/15
to Ruby on Rails: Talk

ActiveRecord::RecordNotFound in StoreController#catalog

Couldn't find Category with 'id'=


from my store_controller.rb :


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

fugee ohu

unread,
Nov 25, 2015, 4:16:12 PM11/25/15
to Ruby on Rails: Talk
nevermind, solved i was using the syntax taken from rake routes in my routes.rb
Reply all
Reply to author
Forward
0 new messages