Advertisement
mithereal

Untitled

Mar 20th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. controller
  2. def step2(conn, %{"post" => post_params}) do
  3. IO.inspect(post_params)
  4. conn
  5. |> put_layout(false) |> render("step2.html", data: post_params)
  6.  
  7. end
  8.  
  9. view
  10. <%= @data[:toAddress][:postal_code] %>
  11.  
  12. value of inspect
  13. %{"distance" => "0",
  14. "fromAddress" => %{"administrative_area_level_1" => "AZ",
  15. "country" => "United States", "locality" => "Phoenix",
  16. "postal_code" => "85029", "route" => "West Peoria Avenue",
  17. "street_number" => "3121"},
  18. "toAddress" => %{"administrative_area_level_1" => "AZ",
  19. "country" => "United States", "locality" => "Glendale",
  20. "postal_code" => "85301", "route" => "West Glendale Avenue",
  21. "street_number" => "4333"}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement