Text_field help

I want to make a form where, when the page first loads you can just
being typing away in the first text_field. I thought this was called
focus, so I tried

<%= text_field :group, :name %>
<%= javascript_tag “$(‘group_name’).focus()” %>

but that doesn’t seem to work for me. Is this called something else?

~Jeremy