Forum: Ruby on Rails How to call controller from a div

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.
Bing (Guest)
on 2006-05-18 15:24
Hi guys,

it's me again,

Just wanted to ask, what technique can you use to call a def inside your
controller while clicking on a div?

thanks,

Bing
Nicolas B. (Guest)
on 2006-05-18 18:24
(Received via mailing list)
does reading the manual about link_to help you?
http://api.rubyonrails.org/classes/ActionView/Help...
Richard W. (Guest)
on 2006-05-18 18:33
(Received via mailing list)
Ouch!
Bing (Guest)
on 2006-05-19 09:26
Hey Nicolas,

thanks, will give it a try. I can't use link_to it seems bec it needs to
redirect to another url. I may need to use link_to_remote.

thanks,

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