diff --git a/app/controllers/friends_controller.rb b/app/controllers/friends_controller.rb index eed13f6..297763b 100644 --- a/app/controllers/friends_controller.rb +++ b/app/controllers/friends_controller.rb @@ -1,6 +1,8 @@ class FriendsController < ApplicationController before_action :set_friend, only: %i[ show edit update destroy ] + http_basic_authenticate_with name: "admin", password: "passwort", only: %i[edit update create new destroy] + def index @friends = Friend.all end diff --git a/app/controllers/parties_controller.rb b/app/controllers/parties_controller.rb index daf52ce..1494729 100644 --- a/app/controllers/parties_controller.rb +++ b/app/controllers/parties_controller.rb @@ -1,5 +1,6 @@ class PartiesController < ApplicationController before_action :set_party, only: %i[ show edit update destroy ] + http_basic_authenticate_with name: "admin", password: "passwort", only: %i[edit update create new destroy show toggle_attendent] def index @parties = Party.all diff --git a/app/views/welcome/index.html.erb.muster b/app/views/welcome/index.html.erb.muster new file mode 100644 index 0000000..0208ebd --- /dev/null +++ b/app/views/welcome/index.html.erb.muster @@ -0,0 +1,13 @@ +
Find me in app/views/welcome/index.html.erb
++