
Untitled
By: a guest on
May 31st, 2012 | syntax:
None | size: 1.12 KB | hits: 14 | expires: Never
## Controller:
def update
@user = User.find(params[:id])
if @user.update_attributes(params[:user])
@user.updated_by = @current_user
flash[:notice] = "User modified successfully."
to_company_users(@user.company.id)
else
render :action => 'edit'
end
end
## Exception
ActionView::MissingTemplate (Missing template users/edit.erb in view path app/views:vendor/plugins/query_reviewer/lib/query_reviewer/views):
app/controllers/users_controller.rb:64:in `update'
vendor/gems/newrelic_rpm-2.13.3/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:254:in `perform_action'
vendor/gems/newrelic_rpm-2.13.3/lib/new_relic/agent/method_tracer.rb:141:in `trace_execution_scoped'
vendor/gems/newrelic_rpm-2.13.3/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:247:in `perform_action'
haml (2.1.0) [v] rails/./lib/sass/plugin/rails.rb:19:in `process_without_query_review'
vendor/gems/newrelic_rpm-2.13.3/lib/new_relic/rack/developer_mode.rb:20:in `call'
vendor/gems/newrelic_rpm-2.13.3/lib/new_relic/rack/developer_mode.rb:20:in `call'