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

odix67
Hi, I have to build an app also on windows, since some time, I do not know it exactly, I ran into the the issue below during download of...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
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
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge &amp; Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews