我在 redmine 中编写了一个插件,我更新了很多次我构建的表,但是当我尝试更新 redmine 表中的一些属性时它没有工作。
 
就我而言,我想更新项目表中的“标识符”属性。
 
def update_project_field()
begin
  @projj=Project.find(params[:project_id]) #current projet
  begin
    if (params[:identifier_pr]) != "" || (params[:identifier_pr]) != nil
        @projj.update_attributes(:identifier => params[:pr_identifier])
        if @projj.save
          flash[:notice] ="ok"
        else
          flash[:error] ="error"
        end
    end
  rescue Exception => e
    puts e.message
    puts e.backtrace.inspect
  end
  redirect_to :action=>'reunion'
end
结尾
显示成功消息,但未发生更新。
我应该怎么办 ?
感谢帮助。