[Rails] Can rails make use of accesskeys?

Justin Forder justin at justinforder.me.uk
Sun Jan 1 03:21:02 GMT 2006


Bruce Balmer wrote:

> I added :accesskey=>"D" to the html options hash of my link_to tag  but 
> nothing happened.

It works for me, e.g.

<%= link_to 'Back', {:action => 'list'}, :accesskey => "b" %>

or

<%= link_to 'Back', {:action => 'list'}, {:accesskey => "b"} %>

Do you see the attribute when you do "View Source" in the browser?

Happy New Year!

   Justin



More information about the Rails mailing list