Documentation for html_options = {}

Hi, trying to locate documentation for html_options = {} as allowed in
RJS calls such as link_to_remote.

Can anyone point me in the right direction please?

html_options is simply a hash that gets directly translated into HTML attributes.

Example:

<%= img_tag ‘url’, :html_options => {:width => 1, :height => 2, :my_attr => ‘ohnoes’} %>

becomes:

Jason

Sorry, didn’t mean to have the :html_options in there, should read as:

<%= img_tag ‘url’, :width => 1, :height => 2, :my_attr => ‘ohnoes’ %>

Jason