1

I'm using gem gmaps4rails and gem cells both of which by themselves work brilliantly. However I've created a cell with haml

= gmaps(@options)

and I get the error

Missing partial /gmaps4rails/gmaps4rails with 
{:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :coffee, :haml]}. 
Searched in:  * "/Users/bradphelan/workspace/openkitchen/app/cells"

the offending code is

----------------------
Google-Maps-for-Rails-75fc25d55f79/lib/gmaps4rails/helper/gmaps4rails_helper.rb
----------------------
 15   def gmaps(options, enable_css = true, enable_js = true )
 16     render :partial => 'gmaps4rails/gmaps4rails', :locals => { :options => options.with_indifferent_access, :enable_css => enable_css, :enable_js => enable_js }
 17   end

where the partial is rendered. This should work. The partial is there and it works when I call gmaps from a normal rails view template. Somehow cells is messing the partial search path and/or gmaps is not calling the partial correctly. Not sure where the problem is.

jigfox
  • 18,057
  • 3
  • 60
  • 73
bradgonesurfing
  • 30,949
  • 17
  • 114
  • 217
  • Im on gmaps4rails 1.5.2 and am having this same issue. just wanted to update you that it seems like this bug is still floating around. –  Aug 02 '12 at 23:20

1 Answers1

1

Reading your question, I realize the problem is on gmaps4rails side.

I've just pushed a fix on github, could you try it please?

apneadiving
  • 114,565
  • 26
  • 219
  • 213
  • Ta for the quick turn around .... but in frustration I've dropped back to standard helpers :(. I'm sure I'll get around to trying it in the next few days again though. – bradgonesurfing Feb 02 '12 at 22:19
  • I'm pretty sure I tried manually editing the gem myself and adding in the prefix forward slash but it didn't help. As I said I've gone back to standard helpers for the moment and I can't verify the fix but I have a feeling it is not correct. – bradgonesurfing Feb 03 '12 at 20:46
  • as far as i can see this is still an issue, anyone? – nodrog Jun 11 '13 at 16:28