apneadiving / Google-Maps-for-Rails

Enables easy Google map + overlays creation in Ruby apps
https://apneadiving.github.io/
MIT License
2.26k stars 382 forks source link

Getting error Missing partial /gmaps4rails/gmaps4rails #242

Closed sunnybogawat closed 10 years ago

sunnybogawat commented 12 years ago

I want to use generated map inside PDF document ( which i am generating through wicked_pdf gem). I have install updated gem and following all mentioned step but i am facing following error

Missing partial /gmaps4rails/gmaps4rails with {:handlers=>[:erb, :rjs, :builder, :rhtml, :rxml, :rabl], :formats=>[:pdf], :locale=>[:en, :en]} in view paths "/home/sunny/Projects/tinkby_ec2_current/app/views", "/home/sunny/Projects/tinkby_ec2_current/vendor/plugins/restful_authentication/app/views", "/home/sunny/Projects/tinkby_ec2_current/vendor/plugins/paperclip/app/views", "/home/sunny/Projects/tinkby_ec2_current/vendor/plugins/acts_as_taggable_on_steroids/app/views", "/home/sunny/.rvm/gems/ruby-1.9.2-p136@rails-3.0.0/gems/gmaps4rails-1.5.0/app/views"

apneadiving commented 12 years ago

I don't understand the issue here as the path including the partial is listed.

Sidenote: I fear the map wouldn't be rendered in pdf.

aayushkhandelwal11 commented 11 years ago

I guess it can be

try by making a partial _gmaps4rails.pdf.(whatever the parser) in ur app/views/gmpas4rails(u have to create it) . the paste the code of _gmaps4rail.html.errb in this. i Ma not sure whether it will run or not i tried it for mobile verison and it worked