Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 31st, 2012  |  syntax: None  |  size: 1.12 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ## Controller:
  2.  
  3.  def update
  4.     @user = User.find(params[:id])    
  5.    
  6.     if @user.update_attributes(params[:user])
  7.       @user.updated_by = @current_user
  8.    
  9.       flash[:notice] = "User modified successfully."
  10.       to_company_users(@user.company.id)
  11.     else
  12.       render :action => 'edit'
  13.     end
  14.   end
  15.  
  16. ## Exception
  17. ActionView::MissingTemplate (Missing template users/edit.erb in view path app/views:vendor/plugins/query_reviewer/lib/query_reviewer/views):
  18.   app/controllers/users_controller.rb:64:in `update'
  19.   vendor/gems/newrelic_rpm-2.13.3/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:254:in `perform_action'
  20.   vendor/gems/newrelic_rpm-2.13.3/lib/new_relic/agent/method_tracer.rb:141:in `trace_execution_scoped'
  21.   vendor/gems/newrelic_rpm-2.13.3/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:247:in `perform_action'
  22.   haml (2.1.0) [v] rails/./lib/sass/plugin/rails.rb:19:in `process_without_query_review'
  23.   vendor/gems/newrelic_rpm-2.13.3/lib/new_relic/rack/developer_mode.rb:20:in `call'
  24.   vendor/gems/newrelic_rpm-2.13.3/lib/new_relic/rack/developer_mode.rb:20:in `call'