From 817acc98de37eda0518a9653908d58a33c0170d1 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Mon, 1 Sep 2014 12:57:06 +0300 Subject: [PATCH] Clean-up leftover files --- app/controllers/speaker_profiles_controller.rb | 16 ---------------- app/views/lectures/create.html.slim | 2 -- app/views/lectures/update.html.slim | 2 -- app/views/speaker_profiles/_form.html.slim | 14 -------------- app/views/speaker_profiles/edit.html.slim | 3 --- config/routes.rb | 4 ---- 6 files changed, 41 deletions(-) delete mode 100644 app/controllers/speaker_profiles_controller.rb delete mode 100644 app/views/lectures/create.html.slim delete mode 100644 app/views/lectures/update.html.slim delete mode 100644 app/views/speaker_profiles/_form.html.slim delete mode 100644 app/views/speaker_profiles/edit.html.slim diff --git a/app/controllers/speaker_profiles_controller.rb b/app/controllers/speaker_profiles_controller.rb deleted file mode 100644 index a51e033..0000000 --- a/app/controllers/speaker_profiles_controller.rb +++ /dev/null @@ -1,16 +0,0 @@ -class SpeakerProfilesController < ApplicationController - before_filter :authenticate_user! - before_action :assign_speaker_profile - - def edit - end - - def update - end - - private - - def assign_speaker_profile - @speaker_profile = SpeakerProfile.find_or_initialize_by(user: current_user) - end -end diff --git a/app/views/lectures/create.html.slim b/app/views/lectures/create.html.slim deleted file mode 100644 index 7ded307..0000000 --- a/app/views/lectures/create.html.slim +++ /dev/null @@ -1,2 +0,0 @@ -h1 Lectures#create -p Find me in app/views/lectures/create.html.slim diff --git a/app/views/lectures/update.html.slim b/app/views/lectures/update.html.slim deleted file mode 100644 index 9eb4837..0000000 --- a/app/views/lectures/update.html.slim +++ /dev/null @@ -1,2 +0,0 @@ -h1 Lectures#update -p Find me in app/views/lectures/update.html.slim diff --git a/app/views/speaker_profiles/_form.html.slim b/app/views/speaker_profiles/_form.html.slim deleted file mode 100644 index 6c3702b..0000000 --- a/app/views/speaker_profiles/_form.html.slim +++ /dev/null @@ -1,14 +0,0 @@ -== simple_form_for @speaker_profile do |form| - p - = form.error_notification - - .form-inputs - = form.input :first_name, autofocus: true - = form.input :last_name - = form.input :public_email - = form.input :organisation - = form.input :github - = form.input :twitter - = form.input :mobile_phone - = form.input :biography - = form.button :submit diff --git a/app/views/speaker_profiles/edit.html.slim b/app/views/speaker_profiles/edit.html.slim deleted file mode 100644 index 521b3ec..0000000 --- a/app/views/speaker_profiles/edit.html.slim +++ /dev/null @@ -1,3 +0,0 @@ -h1.entry-title =t :edit_speaker_profile - -== render 'form' diff --git a/config/routes.rb b/config/routes.rb index 13994b4..13558cd 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -4,10 +4,6 @@ Rails.application.routes.draw do devise_for :users, controllers: {registrations: 'registrations', sessions: 'sessions'} - resource :user, only: [] do - resource :speaker_profile, only: [:edit, :update] - end - root 'home#index' # The priority is based upon order of creation: first created -> highest priority. # See how all your routes lay out with "rake routes".