uninitialized constant ActionView::CompiledTemplates::Category

前端 未结 4 1360
面向向阳花
面向向阳花 2021-01-17 20:46

using this tutorial

http://railscasts.com/episodes/57-create-model-through-text-field

need to make it work in my app, was on rails 3.0.7 and it worked fine,

4条回答
  •  感动是毒
    2021-01-17 21:29

    ok, just for others if they will get into this stupid things as I did, don't forget to have the category.rb in the app/models..

    class Category < ActiveRecord::Base
      ...
    end
    

提交回复
热议问题