upload beispiele attachments...

This commit is contained in:
Andreas Stephanides
2014-02-20 10:50:03 +01:00
parent f13a59b64e
commit 8897a217d9
16 changed files with 77 additions and 32 deletions

View File

@@ -1,6 +1,8 @@
<%= semantic_form_for [@thema,@attachment],:remote=>true do |f| %>
<%= semantic_form_for [@thema,@attachment], :remote=>true do |f| %>
<%= f.inputs do %>
<%= f.input :name %>
<%= token_tag form_authenticity_token %>
<%= f.input :datei, :as => :file %>
<% end %>

View File

@@ -1,2 +1,2 @@
$("#attachmentform").html("<%=escape_javascript( render :partial=>'attachments/rform' )%>")
alert('create_attachment');
$("#attachmentform").html("<%=escape_javascript( render :partial=>'attachments/rform' )%>");

View File

@@ -1 +1,4 @@
$("#attachmentform").html("<%=escape_javascript( render :partial=>'attachments/rform' )%>")
alert('new.js.erb')
$("#attachmentform").html("<%=escape_javascript( render :partial=>'attachments/rform' )+ @action.to_s%>");
$('document').trigger('ready');
alert('ready')