diff --git a/app/controllers/admin/comments_controller.rb b/app/controllers/admin/comments_controller.rb index a8ba840..e0d670d 100644 --- a/app/controllers/admin/comments_controller.rb +++ b/app/controllers/admin/comments_controller.rb @@ -11,7 +11,7 @@ class Admin::CommentsController < ApplicationController before_filter :find_comments - def index + def import_csv require 'csv' csv_text = File.open(Rails.root.join("comments.csv")).read.encode("utf-8") @@ -30,6 +30,10 @@ class Admin::CommentsController < ApplicationController c.created_at = row[2] c.save end + end + + def index + end