我试试这个:
:content => render_to_string(:template =>"#{path [:controller]} /#{path [:action]}.html.haml")
在我的json,但我使用kaminari分页页面,并收到此错误:
ActionView :: Template :: Error(缺少部分kaminari/paginator {{handlers => [:erb,:builder,:coffee,:haml],:formats => [:json],:locale => [:en, :EN]}.
有谁知道我如何解决这个问题?