uninitialized constant ActionView::CompiledTemplates::Category

前端 未结 4 1359
面向向阳花
面向向阳花 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:18

    For me, i got the similar problem in the views. My Category model is available inside namespace example

    Module Financial
      class Category
      end
    end
    

    When i call simply Category.get_method. It was giving same error. so that i modified into Financial::Category that solved my problem.

提交回复
热议问题