CarrierWave workaround: the files have to be saved manually

This commit is contained in:
chris2tof committed 2011-07-14 08:48:42 +08:00
1 parent f73f09ffcf
commit c3ada90365
8 files changed
+39 -54

No files matched your search

+1 -6
View File
@@ -6,11 +6,7 @@ class Admin::DesignsController < ApplicationController
end
def new
@designs = Design.new
@designs.stylesheets.build
@designs.javascripts.build
@designs.images.build
@design = Design.new
end
def update
@@ -32,7 +28,6 @@ class Admin::DesignsController < ApplicationController
end
def create
debugger
@design = Design.new(params[:design])
if @design.save
flash[:notice] = "Successfully created design and tasks."