fixed ingredient bug; added button

This commit is contained in:
Dan Elbert 2016-06-29 19:14:17 -05:00
parent 8811109351
commit c0d43171a4
2 changed files with 9 additions and 0 deletions

View File

@ -11,6 +11,11 @@
return this.each(function() {
var options = $.extend({}, defaultOptions, opts);
var $this = $(this);
if ($this.data(pluginName)) {
return;
}
$this.data(pluginName, {options: options});
var $inputGroup = $('<div class="input-group" />');

View File

@ -8,6 +8,10 @@
<p>No Ingredients</p>
<% else %>
<%= link_to 'New Ingredient', new_ingredient_path, class: 'btn btn-default' %>
<br/>
<table class="table table-condensed table-hover">
<thead>
<tr>