Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5973729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:50:29+00:00 2026-05-22T20:50:29+00:00

I have enjoyed using you gmaps_4_rails gem and am impressed with the ease of

  • 0

I have enjoyed using you gmaps_4_rails gem and am impressed with the ease of configuring it. The only problem that I have had and I have spent a great deal of time trying to get it working is how to add an image to an infowindow. I cant get the example:

def gmaps4rails_infowindow
  "<img src=\"#{self.picture}\"> #{self.name}"
end

to work. I want to be able to do something like this in the infowindow /public/images/#{name}.jpg width= 25 height = 32.

I eventually want to store the images on amazon s3 but have been working on my local macbook to get the process working.

Any assistance would be greatly appreciated

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T20:50:30+00:00Added an answer on May 22, 2026 at 8:50 pm

    Simply do this:

    def gmaps4rails_infowindow
      "<img src='/images/#{name}.jpg' width='25' height='32'> #{name}"
    end
    

    Have a look here to be sure of what you do:
    https://github.com/apneadiving/Google-Maps-for-Rails/wiki/Security-Warning

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I began using Git last year and have enjoyed it so much that I'm
I have hit a problem with the Perfarce extension that I can’t seem to
I recently became aware that the strdup() function I've enjoyed using so much on
In the past I have really enjoyed using Trac with subversion repositories hosted on
I've enjoyed using Rails on Heroku, and like that I can adjust the configuration
I started programming in Python on Monday. I have enjoyed learning it. But I
I really like the MVC way and have actually enjoyed learning ASP.NET MVC (I
I have used PyGame for a while now, and quite enjoyed doing so, but
Have a SomeLib.pro file that contains: CONFIG += debug TEMPLATE = lib TARGET =
Have a matrix report now that has Position, Hours and Wages for a location

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.