apotonick/cells — Issue #102: Rendering partials from another engine is broken
Author: bradphelan
Created: 2012-02-02 20:55:06+00:00
State: open

I have a cell with the following call

@some_html = render :partial => 'gmaps4rails/gmaps4rails', :locals => { :options => @big_options.with_indifferent_access, :enable_css => false, :enable_js => true }

The code fails with

Missing partial gmaps4rails/gmaps4rails with {:locale=>[:en], :formats=>[:html, :text, :js, :css, :ics, :csv, :png, :jpeg, :gif, :bmp, :tiff, :mpeg, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json, :pdf, :zip], :handlers=>[:erb, :builder, :coffee, :haml]}. Searched in:
* "/Users/bradphelan/workspace/openkitchen/app/cells"

However if I use that call from a normal controller then it works just fine. What is cells doing to the partial search path that makes this break. My use case is the gmaps4rails gem that is an engine and builds google maps with partials. I want to wrap my custom options for this helper into a cell as I have a number of different types of maps that I build.