Our great sponsors
-
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)
-
redux-form
A Higher Order Component using react-redux to keep form state in a Redux store [Moved to: https://github.com/redux-form/redux-form]
[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:
-
SonarQube
Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.
-
Here is a link to a full app if it could be helpful
Related posts
- 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 show a redux-form warning as a result of async-validation?
- Best way to submit FORM data with React Redux?