2010-12-22 59 views
0

HI更新軌道哈希列,如何通過就地編輯

我有像

<div> 
      <h6>Employee ID</h6> 
     <p> 
      <span id="edit_employee_id">my emp id</span> 
      <a href="#" class="short_description_text btn" id="edit_employee_id_link"> <%= custom_button("change") %> </a> 
      <%= in_place_editor "edit_employee_id", :url => {:controller => :users, :action => 'set_user_empid', :id => @user} %> 
     </p> 
    </div> 

我試圖更新我的表User_detail(ID,USER_ID我認爲文件中的in_place編輯器,ADDITIONAL_INFO),其中ADDITIONAL_INFO是散列(:EMPID: 「」:prjtname: 「」)

我已經在User_detail表中的所有用戶進入

如何更新EMPID在這個in_place編輯器的additional_info哈希中。

我不知道該怎麼做? 請給與建議

回答

1

使用此plugin

順便說一下,您可能想要更好地指定您的屬性。 project_name over prjtname