Search code examples
ruby-on-railsruby-on-rails-3gmaps4rails

Rails, gmaps4rails - sidebar items


Firstly, I just want to say that the gmaps4rails gem has been fantastic. Easy to setup and configure quickly.

My question relates to the sidebar that the gem generates. I've added a "def gmaps4rails_sidebar" method to my model and I want to define not just a hyperlink to the marker but also some other text that isn't wrapped in the tag.

Is this possible? If not, what's the easiest way to do this?

Thanks.


Solution

  • There is nothing to customize the sidebar and I don't think I'll implement it because it's pretty easy for anyone to do it:

    In the callback, loop the markers and get inspiration from this really short function.