We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

Tim Austin • 6 years ago

Would it be fair to describe plug as a specification that functions to describe code that behaves like middleware in node/express?

Gonzalo Martinez • 6 years ago

In my testing, I needed to put {:plug_cowboy, "~> 1.0"} in mix.exs too. And maybe is needed to explain that the plug LearningPlug is in the file lib/learning_plug.ex . Thanks for your post is greeat!

Nathan Wallis • 8 years ago

Yes thanks - perfect for getting your head around it. I am going through the phoenix boilerplate code and trying to figure out where a Plug is defined when they use this format:

plug :protect_from_forgery

Is that a built in plug module? Or something defined in phoenix?

Akshay Sasidharan • 8 years ago

Well explained. Thanks!

Yummy Bian • 8 years ago

Which drawing tool you used in your article?

badux • 9 years ago

Well written, with a minimum of fuss. Suggestion; add a reminder to readers to add the my_pipeline app to mix.exs file before trying to start it up.