Last active
August 29, 2015 14:10
-
-
Save jtrim/c696111c22b84a2d4800 to your computer and use it in GitHub Desktop.
This file contains 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
defmodule MyApp.PostsController do | |
use Phoenix.Controller | |
require IEx | |
plug :action | |
def index(conn, _params) do | |
IEx.pry | |
conn |> render "index" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment