Execute task and getting output from rake

This commit is contained in:
Adam
2015-12-31 14:17:38 +01:00
parent ca91c3d16f
commit a41e997931
6 changed files with 45 additions and 5 deletions

View File

@@ -2,7 +2,7 @@
<p><label for="codes">
CSV content goes here:
</label><br />
<%= text_area_tag "csv_content", @csv_content, rows: 20, cols: 70 %></p>
<textarea id="csv_content" name="csv_content" rows=20 style="width: 100%"><%= @csv_content %></textarea></p>
<p><label for="task">Task: </label>
<%= select_tag "task", options_for_select(@tasks) %></p>
@@ -15,5 +15,5 @@
<br />
<p><label for="output_area">Output area: </label>
<div id="output_area" style="width: 36.4em;height: 14em;outline: 1px solid #A9A9A9;"></div>
<div id="output_area" style="width: 100%;height: 14em;outline: 1px solid #A9A9A9; overflow: scroll"><%= @output.html_safe %></div>
<% end %>