Quantcast
Channel: Active questions tagged ruby - Stack Overflow
Viewing all articles
Browse latest Browse all 4634

rails render_to_string giving errors with partial view

$
0
0

I am getting ActionView::MissingTemplate error when using render_to_string method with partial views, below the code

 bizz = render_to_string(:partial => "biz_new",:layout => false)

Even though i have explicitly specified :layout => false, i am getting the MissingTemplate error always.

But render_to_string with normal views works fine in the same project. what could be the reason?

below the stack trace

ActionView::MissingTemplate (Missing partial businesses/biz_new with {:handlers=>[:erb, :rjs, :builder, :rhtml, :rxml], :formats=>[:text,"/"], :locale=>[:en, :en]} in view paths"/home/ramesh/works/xxx/app/views","/home/ramesh/works/xxx/vendor/plugins/asset_packager/app/views"):


Viewing all articles
Browse latest Browse all 4634

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>