app/views/editor/index.html.erb in smalruby-editor-0.0.5 vs app/views/editor/index.html.erb in smalruby-editor-0.0.6
- old
+ new
@@ -2,14 +2,16 @@
<div class="navbar-inner">
<ul class="nav">
<li class="active"><a id="ruby-tab" href="#">Ruby</a></li>
</ul>
- <%= form_tag(editor_load_file_path, id: "file-form", class: "navbar-form pull-right", method: "post", multipart: true) do %>
+ <%= form_tag(source_codes_load_path, id: "file-form", class: "navbar-form pull-right", method: "post", multipart: true) do %>
+ <button id="check-button" type="button" class="btn btn-primary">チェック</button>
<input id="filename" type="text" class="span4" placeholder="プログラムの名前を入れてね(例:01.rb)">
<button id="save-button" type="button" class="btn btn-primary">セーブ</button>
- <a id="load-button" class="btn btn-primary">ロード</a>
- <input id="load-file" type="file" name="load_file" style="display: none">
+ <%= link_to '', source_codes_download_path, id: 'download-link', style: 'display: none', 'data-method' => 'delete' %>
+ <button id="load-button" class="btn btn-primary">ロード</button>
+ <input id="load-file" type="file" name="source_code[file]" style="display: none">
<% end %>
</div>
</div>
<div id="messages">