<% if params[:action] == "edit"%>
<%= radio_button("permission","father_id","father") %> 一级菜单<br/>
<%= radio_button("permission","father_id","child") %> 二级菜单
<% else %>
<%= radio_button("permission","father_id","father") %> 一级菜单<br/>
<%= radio_button("permission","father_id","child") %> 二级菜单
<% end %>
如果是 edit 修改的 action 的话让它默认选中一个 radio(并判断是一级还是二级) 如果是新建的 action 不让它选中 现在的问题是怎样给它一个默认的选中呢?