class name in Rails helper

I added a 'map' class to a Rails image_tag helper like this\[code\]<%= image_tag "http://maps.google.com/maps/api/staticmap?size=300x200&sensor=false&zoom=16&markers={{ latitude }}%2C{{ longitude }}", :class => "map" %>\[/code\]I tried to set styles specific to that image with the map class, so that the image wouldn't be visible by default:\[code\]img {border: solid 0px black;}img .map { visibility: hidden}\[/code\]However, the map class image is visible by defaultThe 'map' class is visible in the html.\[code\]<img alt="Staticmap?size=300x200&sensor=false&zoom=16&markers=40.6891947%2c-74.0444169" class="map" src="http://maps.google.com/maps/api/staticmap?size=300x200&sensor=false&zoom=16&markers=40.6891947%2C-74.0444169">\[/code\]When I inspect the element, Chrome console shows that its only the styles from \[code\]img\[/code\] that are registering, not \[code\]img .map\[/code\]Can you see what I might be doing wrong?
 
Back
Top