{"issue":{"state":"open","created_at":"2011-12-07T22:56:05Z","updated_at":"2011-12-07T22:56:05Z","user":{"gravatar_id":"548117cf1aeaef80afe51aa5df7ba68a","id":611625,"url":"https://api.github.com/users/bbuegler","login":"bbuegler","avatar_url":"https://secure.gravatar.com/avatar/548117cf1aeaef80afe51aa5df7ba68a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":0,"body":"hey i'm sure it's actually not a bug but i've been hurting my head for days now and couldn't get this straightened out. This is most likely due to me being a bloody noob. So here is my problem: \r\n\r\ni've been trying to get a custom infowindow - i'm trying to make my first app on Rails 3.1.0 and Ruby 1.8.7. \r\ni've included the <%= yield :scripts %> and skipped the <%= yield :head %> since it's apparently not required in my version.\r\nmy address is computing\r\n\r\n\tdef gmaps4rails_address\r\n\t\tself.user.street + self.user.city \r\n\tend\r\nand my custom markers are displayed beautifully. i have put together this little piece of code im my controller to show some content in the infowindow and to customise the markers.\r\n\r\ndef maps\r\n\t\t@json = Stuff.all.to_gmaps4rails do |stuff, marker|\r\n\t\t\tmarker.infowindow render_to_string(:partial => \"/stuffs/mapstuff\", :locals => { :stuff => stuff}).gsub(/\\n/, '').gsub(/\"/, '\\\"')\r\n\t\t\tmarker.picture({\r\n\t\t\t\t:picture => stuff.image.url(:tiny),\r\n\t\t\t\t:width   => \"30\",\r\n\t\t\t\t:height  => \"30\"\r\n\t\t\t})\r\n\t\t\t\r\n\t\t\t#marker.description stuff.description\r\n\t\t\tmarker.title   stuff.title\r\n\t\t\t#marker.sidebar \"i'm the sidebar\"\r\n\t\t\tmarker.json    \"\\\"id\\\": #{stuff.id}\"\r\n\t\tend\r\n\tend\r\n\r\nit works fine too and even renders the partial.\r\nmy problems started when i began modifiying the infowindow by passing the option custom_info_window_class:\r\n\r\n<%= gmaps(\"markers\" => {\"data\" => @json, \"options\" => { \"custom_infowindow_class\" => \"yellow\",\"randomize\" => true, \"max_random_distance\" => 1000, \"clusterer_maxZoom\" => 17 }, \"map_options\" => { \"type\" => \"HYBRID\",  \"auto_adjust\" => true,\"center_on_stuff\" => true  }}) %>\r\n\r\nit's hard an cruel but at this point my infowindow gets a new class but not the one i'm pasing. Instead it apparently defaults to: infoBox which allows me to do some styling but from this point on there is no content in my infowindow anylonger, besides the little close infowindow x. has anybody a tip for me?  \r\n\r\n\r\n\r\n\r\n","assignee":null,"labels":[],"id":2481376,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":127,"title":"custom infowindow ","html_url":"https://github.com/apneadiving/Google-Maps-for-Rails/issues/127","closed_at":null,"url":"https://api.github.com/repos/apneadiving/Google-Maps-for-Rails/issues/127","milestone":null},"action":"opened"}