but instead of a boring plain text in the info_window I wanted to use
ajax links to dynamically update divs. Thus i would be nice to use
e.g. link_to_remote and friends, but since that is in a view helper I
can’t use can I? Must I resort to raw javascript?
but instead of a boring plain text in the info_window I wanted to use
ajax links to dynamically update divs. Thus i would be nice to use
e.g. link_to_remote and friends, but since that is in a view helper I
can’t use can I? Must I resort to raw javascript?
You can just include the relevant helper modules into your controller.
Slightly more clean is to have a helpers object into which you include
all those modules. You then have to say helpers.link_to_remote but you
don’t end up with dozens of methods added to your controller.
Fred
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.