Forum: Ruby on Rails link_to_remote from Controller

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Steve R. (Guest)
on 2006-02-07 03:19
(Received via mailing list)
Hello--

I¹m using Builder::XmlMarkup to create a menu tree and need to have some
gee-whizzy javascript to make the menus expand, fade, twirl and dance.
Ok,
maybe not the last bit. Anyhow, because the html is generated mainly
through
code like:

xm.li(:id=> ³menu_#{unique_id}², :class => �menu¹){
  xm << link_to_function(�menu name¹, �function_name¹)
}

Unfortunately, link_to_function is in a helper and not accessible to my
controller code. Anyone know how better to accomplish this?

Thanks,

Steve
This topic is locked and can not be replied to.