Radio buttons in forms

<% form_for @group do |g| %>

    To create a new group please complete the details below

    <p>
        <label> Group Name </label>
        <%= g.text_field :name %>
    </p>

    <p>
        <label> Public </label>
        <%= g.radio_button :type, "public" %>
        <label> Private </label>
        <%= g.radio_button :type, "private" %>
        <label> Secret </label>
        <%= g.radio_button :type, "secret" %>
    </p>

    <%= submit_tag(value = "Create group") %>
<% end %>