-
def create(conn, %{"product" => product_params}) do changeset = Product.changeset(%Product{}, product_params) case Repo.insert(changeset) do {:ok, _product} -> conn |> put_flash(:info, "Product created successfully.") |> redirect(to: product_path(conn, :index)) {:error, changeset} -> render(conn, "new.html", changeset: changeset) endend params from log (I am using arc for handling image uploads in elixir code)
-
InfluxDB
Purpose built for real-time analytics at any scale. InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards.
-
redux-form
Discontinued A Higher Order Component using react-redux to keep form state in a Redux store [Moved to: https://github.com/redux-form/redux-form] (by erikras)
[debug] Processing by SecretApp.ProductController.create/2 Parameters: %{"_csrf_token" => "Zl81JgdhIQ8GG2c+ei0WCQ9hTjI+AAAA0fwto+HMdQ7S7OCsLQ9Trg==", "_utf8" => "✓", "product" => %{"description" => "description_name", "image" => %Plug.Upload{content_type: "image/png", filename: "wallpaper-466648.png", path: "/tmp/plug-1460/multipart-754282-298907-1"}, "name" => "product_name", "price" => "100"}} Pipelines: [:browser] Api.ProductController handles requests from redux-from. Here is action, view and params, which are processed by this action:
-
Here is a link to a full app if it could be helpful
Related posts
-
How to set initialValues based on async source such as an ajax call with redux-form
-
form & initialValues properties not recognized with multiple forms in one component (redux-form v7.0.4)
-
redux-form: trigger Form onSubmit after Input onChange
-
Redux Form: How to handle multiple buttons?
-
How can I render the initial values of redux-form field arrays?