Definitely bug :-( On Feb 12, 12:04 pm, Ming <[email protected]> wrote: > As late as May 2008, Merb:AssetsMixin had a link_to_function > > http://github.com/wycats/merb-more/commit/00e192d30b50206d045b515ae3f... > > that produced 'onclick' > > def link_to_function(name, function, opts) > %{<a href="#" onclick="#{function.chomp(";")}; return false;" > #{ opts.to_xml_attributes }>#{name}</a>} > end > > The current Merb:AssetsMixin dropped this function, keeping link_to, > which using opts.to_xml_attributes > > def link_to(name, url='', opts={}) > opts[:href] ||= url > %{<a #{ opts.to_xml_attributes }>#{name}</a>} > end > > turns {"onClick" => "some_func()"} > > on_click="some_func()" in the a tag, which isn't recognized my > browser. > > ??
-- You received this message because you are subscribed to the Google Groups "merb" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/merb?hl=en.
