TL;DR
Install Postgres 10, and then:
sudo pg_dropcluster 10 main --stop
sudo pg_upgradecluster 9.6 main
sudo pg_dropcluster 9.6 main
TL;DR
Install Postgres 10, and then:
sudo pg_dropcluster 10 main --stop
sudo pg_upgradecluster 9.6 main
sudo pg_dropcluster 9.6 main
Disclaimer: I'm a one-day-old Elixir/Phoenix developer.
In Sonny's training yesterday, we used an Ecto.Changeset
to handle user registration (a database-backed operation). This worked perfectly for rendering the intial form and re-rendering the form with validation errors.
This is because our Workshop.RegistrationController
is calling Repo.Insert
which sets the changeset's :action
, whether or not the insertion succeeds. Then Phoenix.HTML
's form_for
function appropriately sets errors on the form so they can be rendered on the page.
###1xx Informational
code | message | symbol |
---|---|---|
100 | Continue | :continue |
101 | Switching Protocols | :switching_protocols |
102 | Processing | :processing |
###2xx Success
<!-- Prevent FOUC (flash of unstyled content) - http://johnpolacek.com/2012/10/03/help-prevent-fouc/ --> | |
<style type="text/css"> | |
.no-fouc {display: none;} | |
</style> | |
<script type="text/javascript"> | |
document.documentElement.className = 'no-fouc'; | |
// add to document ready: $('.no-fouc').removeClass('no-fouc'); | |
</script> |