Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- controller
- def step2(conn, %{"post" => post_params}) do
- IO.inspect(post_params)
- conn
- |> put_layout(false) |> render("step2.html", data: post_params)
- end
- view
- <%= @data[:toAddress][:postal_code] %>
- value of inspect
- %{"distance" => "0",
- "fromAddress" => %{"administrative_area_level_1" => "AZ",
- "country" => "United States", "locality" => "Phoenix",
- "postal_code" => "85029", "route" => "West Peoria Avenue",
- "street_number" => "3121"},
- "toAddress" => %{"administrative_area_level_1" => "AZ",
- "country" => "United States", "locality" => "Glendale",
- "postal_code" => "85301", "route" => "West Glendale Avenue",
- "street_number" => "4333"}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement