Clean-up leftover files
This commit is contained in:
parent
a4972b450b
commit
817acc98de
|
@ -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
|
|
@ -1,2 +0,0 @@
|
|||
h1 Lectures#create
|
||||
p Find me in app/views/lectures/create.html.slim
|
|
@ -1,2 +0,0 @@
|
|||
h1 Lectures#update
|
||||
p Find me in app/views/lectures/update.html.slim
|
|
@ -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
|
|
@ -1,3 +0,0 @@
|
|||
h1.entry-title =t :edit_speaker_profile
|
||||
|
||||
== render 'form'
|
|
@ -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".
|
||||
|
|
Loading…
Reference in New Issue