<%= link_to_remote(“Toggle View”, :url => {:action => ‘toggleview’},
:html => {:id => ‘toggle_display’}) %>
html_options must be passed as the third parameter of type hash (here you pass one string, then one hash)
try : link_to_remote(“Toggle View”, { :url => {:action => ‘toggleview’} }, {:id => ‘toggle_display’})
cheers
Thibaut