Created
February 23, 2016 15:29
-
-
Save wdiechmann/0da1a6d38df3c313ff45 to your computer and use it in GitHub Desktop.
elixir abstractcontroller
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# web/controllers/page_controller.ex | |
defmodule HelloPhoenix.PageController do | |
# use HelloPhoenix.Web, :controller | |
use AbstractController | |
# def index(conn, _params) do | |
# render conn, "index.html" | |
# end | |
def show(conn, _params) do | |
render conn, "show.html" | |
end | |
end | |
#lib/abstract_controller.ex | |
defmodule AbstractController do | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment