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?
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs