Skip to content

Commit

Permalink
Removed remote :true from templates form and added template thumbnail…
Browse files Browse the repository at this point in the history
…s to screens#edit to close #51
  • Loading branch information
brzaik committed Mar 11, 2012
1 parent c325436 commit 69274df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/views/screens/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
<div class="inp">
<%= f.radio_button :template_id, template.id %>
</div>
<%= image_tag preview_template_path(template, :format => :png), :style => "height: 60px; margin: 0px;" %>
<div class="cont">
<p><b><%= template.name %></b></p>
<p>by <%= template.author %></p>
Expand Down
2 changes: 1 addition & 1 deletion app/views/templates/_form.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<%= form_for(@template, :remote => true, :html => { :multipart => true }) do |f| %>
<%= form_for(@template, :html => { :multipart => true }) do |f| %>
<% if @template.errors.any? %>
<div id="errorExplanation">
<h2><%= pluralize(@template.errors.count, "error") %> prohibited this template from being saved:</h2>
Expand Down

0 comments on commit 69274df

Please sign in to comment.