app/controllers/admin/galleries_controller.rb
# Method to add mass upload with only one params
# the params define the directory where all picture are
Method to add mass upload with only one params
the params define the directory where all picture are
Method to add mass upload with only one params the params define the directory where all picture are
def mass_upload
    if Gallery.create_from_directory params[:directory]
      redirect_to :action => 'follow_import'
    else
      flash[:notice] = 'the directory is not a directory'
      render :action => 'new'
    end
  rescue ActiveRecord::RecordInvalid
    render :action => 'new'
  end
def mass_upload if Gallery . create_from_directory params [ :directory ] redirect_to :action => 'follow_import' else flash [ :notice ] = 'the directory is not a directory' render :action => 'new' end rescue ActiveRecord :: RecordInvalid render :action => 'new' end
Method to add mass upload with only one params
the params define the directory where all picture are
Method to add mass upload with only one params the params define the directory where all picture are