How to call controller from a div


#1

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


#2

does reading the manual about link_to help you?
http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#M000378


#3

Ouch!


#4

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