Revision 53c61d6d
Added by Ohad Levy over 12 years ago
- ID 53c61d6ddb5498d82aa46cba9fa1efb1f0679438
app/controllers/config_templates_controller.rb | ||
---|---|---|
unless error_msgs.empty?
|
||
msg = "There was an error creating the PXE Default file: #{error_msgs.join(",")}"
|
||
respond_to do |format|
|
||
format.html { error msg and return redirect_to :back}
|
||
format.html { error(msg) and return redirect_to(:back)}
|
||
format.json { render :json => msg, :status => 500 and return }
|
||
end
|
||
end
|
Also available in: Unified diff
added parenthesis to avoid warnings on older Ruby