Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // controllers/booking_controller.ex
- defmodule TaksoWeb.BookingController do
- use TaksoWeb, :controller
- def index(conn, _params) do
- render conn, "index.html"
- end
- def new(conn, _params) do
- render conn, "new.html"
- end
- def create(conn, _params) do
- conn
- |> put_flash(:info, "Your taxi will arrive in 10 minutes")
- |> redirect(to: booking_path(conn, :index))
- end
- end
- // templates/booking/index.html.eex
- // -- bu fayl bos olacak
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement