Can anyone give me an example of using html_options with
link_to_remote? I'd like to set (for instance) the CSS Class on the
resulting link. I've tried this sort of thing:
Can anyone give me an example of using html_options with
link_to_remote? I'd like to set (for instance) the CSS Class on the
resulting link. I've tried this sort of thing:
Can anyone give me an example of using html_options with
link_to_remote? I'd like to set (for instance) the CSS Class on the
resulting link. I've tried this sort of thing:
You are right about :html_options, but this still will not work,
because 'options' hash will
swallow both :url and :class leaving 'html_options' empty.
When using html_options, make sure Rails can tell them from options,
i.e. use curly
braces for options: