Render_to_string rails 3.1

I try this:

: content => render_to_string (: template => "# {path [: controller]} / # {path [: action]}. html.haml")

In my json, but I use kaminari to paginate and get this error:

ActionView :: Template :: Error (There is no partial kaminari / paginator using {: handlers => [: erb ,: builder ,: coffee ,: haml] ,: formats => [: json] ,: locale => [: ru ,: en]}.

Does anyone know how I solve this?

+5
source share

All Articles