added auth to party and friend
This commit is contained in:
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
13
app/views/welcome/index.html.erb.muster
Normal file
13
app/views/welcome/index.html.erb.muster
Normal file
@ -0,0 +1,13 @@
|
||||
<div>
|
||||
<h1 class="font-bold text-4xl">Welcome</h1>
|
||||
<p>Find me in app/views/welcome/index.html.erb</p>
|
||||
</div>
|
||||
|
||||
<p class="mt-10">
|
||||
<h2>Beschreibung</h2>
|
||||
<ul>
|
||||
<li>Was sind Tags</li>
|
||||
<li>Was ist CSS</li>
|
||||
<li>Wir machen und das Leben einfacher mit Tailwind CSS</li>
|
||||
</ul>
|
||||
</p>
|
||||
Reference in New Issue
Block a user