Revision 003ae9a1
Added by Ohad Levy about 14 years ago
- ID 003ae9a1e2f1af661673cf5b2db6da8f126fc998
app/controllers/hosts_controller.rb | ||
---|---|---|
flash[:foreman_notice] = "Successfully created host."
|
||
redirect_to @host
|
||
else
|
||
load_vars_for_ajax
|
||
render :action => 'new'
|
||
end
|
||
end
|
||
... | ... | |
flash[:foreman_notice] = "Successfully updated host."
|
||
redirect_to @host
|
||
else
|
||
load_vars_for_ajax
|
||
render :action => 'edit'
|
||
end
|
||
end
|
Also available in: Unified diff
fixes #223 - When a host update has errors then the render :edit loses required variables