CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 02:46:58 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=40a22f124756ab0a05baa63c1ab21f95df482dfa20f6b50171ec19ab214d9b5fa%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22FRK4xeeAt4X7FjMaUkomyykhW2liEstk%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d345151e7dd3d4-BLR
class Shared::EventsController < ApplicationController layout 'admin/panel' - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Shared::EventsController < ApplicationController
- layout 'admin/panel'
- before_action :set_event , only: [:edit , :update, :show ,:destroy]
- def index
- @events = Event.all
- end
- def new
- @event = Event.new
- end
- def create
- @event = Event.new(params_event)
- if @event.save
- redirect_to shared_events_path, notice: "Pedido Salvo com sucesso!!"
- else
- render :new
- end
- end
- def edit
- end
- def update
- if @event.update(params_event)
- redirect_to shared_events_path, notice: "Pedido Editado com sucesso!!"
- else
- render :edit
- end
- end
- def set_event
- @event = Event.find(params[:id])
- end
- def show
- end
- def destroy
- if @event.destroy
- redirect_to shared_events_path, notice: "Pedido excluido com sucesso!!"
- else
- render :index
- end
- end
- private
- def params_event
- params.require(:event).permit(
- :title,
- :data_inicio,
- :data_fim,
- :description
- )
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐⭐⭐MAKE $500 IN 15 MIN⭐⭐
Java | 8 sec ago | 0.10 KB
-
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 8 sec ago | 0.25 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ G
JavaScript | 17 sec ago | 0.25 KB
-
⭐⭐⭐MAKE $9OO INSTANTLY D A⭐⭐
Java | 19 sec ago | 0.10 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ X
JavaScript | 27 sec ago | 0.25 KB
-
⭐⭐⭐Exchange Exploit T I⭐⭐
Java | 30 sec ago | 0.10 KB
-
⭐✅ Swapzone Glitch ✅ Working ⭐⭐ X
JavaScript | 36 sec ago | 0.25 KB
-
⭐⭐⭐Exploit 500$ in 15 Minutes⭐⭐
Java | 41 sec ago | 0.10 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand