NodeController:
def show
def toggle
run some stuff here
end
other random show stuff
end
I want to call the "toggle" function using a link on my show.html.erb view. How would I go about creating a link_to for this?
<%= link_to "Toggle", :controller=>"node", :action=>"show:toggle" %>????