Created
December 12, 2015 02:37
-
-
Save JacobMillner/41ebce8a3e610d3ac432 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p id="notice"><%= notice %></p> | |
<h1>Listing Stock Data</h1> | |
<table> | |
<thead> | |
<tr> | |
<th>Symbol</th> | |
<th colspan="3"></th> | |
</tr> | |
</thead> | |
<tbody> | |
<%= form_tag({:controller=>"stock_data", :action=>"multiCreate"}, method: :get) do %> | |
<%= number_field_tag :user_search_id %> | |
<%= submit_tag 'Search by user id', name: nil %> | |
<% end %> | |
<% @stock_data.each do |stock_datum| %> | |
<tr> | |
<td><%= stock_datum.symbol %></td> | |
<td><%= link_to 'Sync', :controller => 'sync', :action => 'syncSymbol', :symbol => stock_datum %> <%= evil_icon 'ei-refresh', size: :s %> </td> | |
<td><%= link_to 'Show', stock_datum %></td> | |
<td><%= link_to 'Edit', edit_stock_datum_path(stock_datum) %></td> | |
<td><%= link_to 'Destroy', stock_datum, method: :delete, data: { confirm: 'Are you sure?' } %></td> | |
</tr> | |
<% end %> | |
</tbody> | |
</table> | |
<br> | |
<%= link_to 'New Stock datum', new_stock_datum_path %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment