about dynamic select

I want to design a dynamic select container.That is :when a user selects
a province,there is a city select container dropping out.Then when a
user select a
city,there is a city section container dropping out.I use the
observe_field to manage these.
1 controller:
def register
    if params[:user]&&@user.save
        redirect_to :action=>"upanel"
        render :action=>"register"
def get_region_kind
    if params[:region_kind]=="省"
    elsif params[:region_kind]=="直辖市"
    elsif params[:region_kind]=="特别行政区"
  def get_capital
    case capital_select
        when "石家庄" then @section=User::SHIJIAZHUANG
        when "秦皇岛" then @section=User::QINGHUANGDAO
2 view:
<%form_for :user,:url=>{:action=>"register"},:html=>{:multipart=>true}
do |f|-%>
    <%=f.file_field "file"-%>图片名称使用中文以外字符
  <div id="region">
<%=submit_tag "提交",:disable_with=>"请稍候..."-%>

  <%=select "user","province",User::PROVINCE-%>
  <%=select "user","city",User::CAPITAL-%>
  <%=select "user","section",User::SHIJIAZHUANG-%>

<%=select "user","section",@section-%>

Now,when i select province,the codes work.But when select the city,there
is blank city section select container.It is blank and not what i want.I
think the model should be right.so where is wrong? We can not use the
several user objects in the register.rhtml file to register an user? Or
there is another way to manage my question.

Think about what's going to happen here: the inside of user_section
will get replaced by what's rendered.
So you'll end up with
<select id="user_section" ...>
  <select id="user_section" ...>

which doesn't look good.