ChrisAmelia

ChrisAmelia

Currently reading and experimenting through, which is in 1.6 Chapter 7: Sign up | Phoenix Tutorial (Phoenix 1.6) | Softcover.io
In regard to Phoenix 1.8.5, especially 7.2 Signup form described in the link,

<div class="row">
  <div class="mx-auto col-md-6 col-md-offset-3">
    <%= form_for @changeset, Routes.user_path(@conn, :create), fn f -> %>
      <%= label :user, :name %>
      <%= text_input f, :name %>

      <%= label :user, :email %>
      <%= email_input f, :email %>

      <%= label :user, :password %>
      <%= password_input f, :password %>

      <%= label :user, :password_confirmation, "Confirmation" %>
      <%= password_input f, :password_confirmation %>

      <%= submit "Create my account", class: "btn btn-primary" %>
    <% end %>
  </div>
</div>

I tried translating that to 1.8.5 but with no success, I haven’t been able to find the right keywords on Google.
Is this kind of form outdated, as in not to use anymore? If so, could you point me to resources to create a simple form in 1.8.5?

Showing Posts 1 to 1

lubien

lubien

Cheers mate.

yeah it’s kinda outdated but the new stuff is quite easy to use too.

I have a guide that is LiveView focused but the components are really the same. Here’s when I start talking about forms.

Updated a couple months ago and it uses what’s current used in new projects :saluting_face:

— All posts loaded —

Where Next? Top

Trending in Troubleshooting Top

edvardo1
Hello, I’ve found an interesting non-backwards-compatible change in Elixir 1.20. For context: There exists a project called PolyHok, whi...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews