Remove new_nested action from images controller. Use cocoon gem to manage new nested fields creation on images.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
class ImagesController < ApplicationController
|
||||
before_action :authenticate_user!
|
||||
before_filter :find_imageable, except: :destroy
|
||||
before_filter :prepare_new_image, only: [:new, :new_nested]
|
||||
before_filter :prepare_new_image, only: [:new]
|
||||
before_filter :prepare_image_for_creation, only: :create
|
||||
|
||||
load_and_authorize_resource
|
||||
@@ -9,9 +9,6 @@ class ImagesController < ApplicationController
|
||||
def new
|
||||
end
|
||||
|
||||
def new_nested
|
||||
end
|
||||
|
||||
def create
|
||||
recover_attachments_from_cache
|
||||
|
||||
|
||||
Reference in New Issue
Block a user