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?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---
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:
<img src=''url'' width=''1''
height=''2'' my_attr=''ohnoes''/>
Jason
On 10/14/06, Lee <lee_longmore-/E1597aS9LT10XsdtD+oqA@public.gmane.org>
wrote:>
>
> 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?
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---
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 On 10/14/06, Jason Roelofs <jameskilton-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > 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: > > <img src=''url'' width=''1'' height=''2'' my_attr=''ohnoes''/> > > Jason > > On 10/14/06, Lee <lee_longmore-/E1597aS9LT10XsdtD+oqA@public.gmane.org > wrote: > > > > > > 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? > > > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---