Handle undefined method for nil object

This commit is contained in:
adam.harbas@a-net.ba
2015-12-31 14:55:47 +01:00
parent a6a3d5937c
commit a1fbc18856

View File

@@ -15,5 +15,7 @@
<br />
<p><label for="output_area">Output area: </label>
<div id="output_area" style="width: 100%;height: 14em;outline: 1px solid #A9A9A9; overflow: scroll"><%= @output.html_safe %></div>
<div id="output_area" style="width: 100%;height: 14em;outline: 1px solid #A9A9A9; overflow: scroll"><%= unless @output.nil?
@output.html_safe end %>
</div>
<% end %>