From 4ea20c8b299f4eac569f23c362b4badc05dc1ad1 Mon Sep 17 00:00:00 2001 From: Yulian Glukhenko Date: Wed, 23 Nov 2016 14:20:08 -0800 Subject: [PATCH] updated readme --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1bb2e28..08d9c6a 100644 --- a/README.md +++ b/README.md @@ -145,8 +145,7 @@ You can have the user specify an image URL and display the image with the `image becomes... ```eex -<%= content(@conn, "Image identifier", :image, alt: "My alt tag", do: "http://placekitten.com/200/300") -%> +<%= content(@conn, "Image identifier", :image, alt: "My alt tag", do: "http://placekitten.com/200/300") %> ``` If you prefer to use a `div` with a background image, you can use the `background_image` @@ -190,7 +189,7 @@ config :thesis, uploader: . ``` -The module should have an `upload/1` function that accepts a `%Plug.Upload{}` struct. This function should return either `{:ok, "path/to/file.jpg"}` tuple with an image url or path, or {:error, _}. You can view +The module should have an `upload/1` function that accepts a `%Plug.Upload{}` struct. This function should return either `{:ok, "path/to/file.jpg"}` tuple with an image url or path, or `{:error, _}`. You can view [/lib/thesis/uploaders/repo_uploader.ex](https://github.com/infinitered/thesis-phoenix/blob/master/lib/thesis/uploaders/repo_uploader.ex) for an example.