# \#how-to

**URL:** https://forum.elixirforum.com/tag/how-to/1043.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [Customizing ash\_authentication for dummies (like me)](https://forum.elixirforum.com/t/customizing-ash-authentication-for-dummies-like-me/66206)

<div class="topic-metadata">

**Author:** [@lardcanoe](https://forum.elixirforum.com/u/lardcanoe)\
**Replies:** 3\
**Last updated:** [April 13, 2026, 2:16pm UTC](https://forum.elixirforum.com/t/customizing-ash-authentication-for-dummies-like-me/66206 "2026-04-13T14:16:41Z")

</div>

I’ve been needing to customize our sign in, register, reset password, and forgot password pages for months. Every time I took a look at the ash\_authentication\_phoenix pages/code I ran away crying. And blog posts like Cus…

---

## [Deploy Your Phoenix App on DigitalOcean in 30 Minutes](https://forum.elixirforum.com/t/deploy-your-phoenix-app-on-digitalocean-in-30-minutes/65738)

<div class="topic-metadata">

**Author:** [@sergio](https://forum.elixirforum.com/u/sergio)\
**Replies:** 14\
**Last updated:** [August 23, 2025, 6:53pm UTC](https://forum.elixirforum.com/t/deploy-your-phoenix-app-on-digitalocean-in-30-minutes/65738 "2025-08-23T18:53:08Z")

</div>

Hey there, we’re going to walk through deploying a Phoenix app to a DigitalOcean droplet, manually - no tools no nothing. Just straight up BASH! But don’t worry, I’ve done the hard work so you don’t have to. It occurred…

---

## [How to connect Quill with Phoenix](https://forum.elixirforum.com/t/how-to-connect-quill-with-phoenix/46004)

<div class="topic-metadata">

**Author:** [@Morzaram](https://forum.elixirforum.com/u/Morzaram)\
**Replies:** 15\
**Last updated:** [June 23, 2025, 11:06am UTC](https://forum.elixirforum.com/t/how-to-connect-quill-with-phoenix/46004 "2025-06-23T11:06:31Z")

</div>

Hey guys I’ve made a guide on how to connect Quill to Phoenix. For the sake of formatting it might be easier to view it on my Notion Doc Here How to connect Quill with Phoenix Make a hook file ex ./assets/js/hooks/tex…

---

## [How to: Embed a LiveView via iframe](https://forum.elixirforum.com/t/how-to-embed-a-liveview-via-iframe/65066)

<div class="topic-metadata">

**Author:** [@rhcarvalho](https://forum.elixirforum.com/u/rhcarvalho)\
**Replies:** 10\
**Last updated:** [March 26, 2025, 9:55am UTC](https://forum.elixirforum.com/t/how-to-embed-a-liveview-via-iframe/65066 "2025-03-26T09:55:23Z")

</div>

After collecting information from multiple sources (this forum, blogs, StackOverflow and GitHub), I was finally able to successfully embed part of an existing Phoenix LiveView app in an iframe. I’d like to share the ste…

---

## [Traverse nested list and if the list has two elements apply function](https://forum.elixirforum.com/t/traverse-nested-list-and-if-the-list-has-two-elements-apply-function/70135)

<div class="topic-metadata">

**Author:** [@afhuertass](https://forum.elixirforum.com/u/afhuertass)\
**Replies:** 5\
**Last updated:** [March 26, 2025, 12:23am UTC](https://forum.elixirforum.com/t/traverse-nested-list-and-if-the-list-has-two-elements-apply-function/70135 "2025-03-26T00:23:03Z")

</div>

Hi! I have been dealing with some problem where I have a nested list, I want to keep the nested structure, but if the list is a two elements list, then i want to apply a custom function (I’m dealing with multypolygon co…

---

## [How to pattern match on a union type field before and after it has been saved](https://forum.elixirforum.com/t/how-to-pattern-match-on-a-union-type-field-before-and-after-it-has-been-saved/69431)

<div class="topic-metadata">

**Author:** [@lardcanoe](https://forum.elixirforum.com/u/lardcanoe)\
**Replies:** 5\
**Last updated:** [February 17, 2025, 12:50am UTC](https://forum.elixirforum.com/t/how-to-pattern-match-on-a-union-type-field-before-and-after-it-has-been-saved/69431 "2025-02-17T00:50:08Z")

</div>

When saving the contents of a union type, you can simply pass in a map of the data, such as: x = %MainResource{union\_field: %{foo: :bar}} # Before saving, you can do x.union\_field.foo # and pattern match on %{union\_fiel…

---

## [How to approach building a platform which allows users to video chat?](https://forum.elixirforum.com/t/how-to-approach-building-a-platform-which-allows-users-to-video-chat/62280)

<div class="topic-metadata">

**Author:** [@MatijaL](https://forum.elixirforum.com/u/MatijaL)\
**Replies:** 3\
**Last updated:** [March 13, 2024, 9:36pm UTC](https://forum.elixirforum.com/t/how-to-approach-building-a-platform-which-allows-users-to-video-chat/62280 "2024-03-13T21:36:48Z")

</div>

Hi guys, I’m always challenging myself with new hobby projects and this time, I would like to build a small platform with Phoenix LiveView where users could sign up and create their profiles. That part is easy, but then…

---

## [Converting Erlang Record into Maps and Maps into Erlang Record](https://forum.elixirforum.com/t/converting-erlang-record-into-maps-and-maps-into-erlang-record/56114)

<div class="topic-metadata">

**Author:** [@michaelwa](https://forum.elixirforum.com/u/michaelwa)\
**Replies:** 2\
**Last updated:** [May 25, 2023, 7:47pm UTC](https://forum.elixirforum.com/t/converting-erlang-record-into-maps-and-maps-into-erlang-record/56114 "2023-05-25T19:47:35Z")

</div>

Hello All, I am missing the boat on what I think should be a simple conversion process. Given: defmodule User do require Record Record.defrecord(:user, name: "meg", age: "25") end Record to map is fairly straight…

---

## [Why do I get variable is unused when using it in case do?](https://forum.elixirforum.com/t/why-do-i-get-variable-is-unused-when-using-it-in-case-do/40062)

<div class="topic-metadata">

**Author:** [@borybar](https://forum.elixirforum.com/u/borybar)\
**Replies:** 2\
**Last updated:** [May 28, 2021, 10:52am UTC](https://forum.elixirforum.com/t/why-do-i-get-variable-is-unused-when-using-it-in-case-do/40062 "2021-05-28T10:52:51Z")

</div>

Hi, I am trying to apply different calculations depending on gender using ‘case do’ however I get variable "user\_bmr" is unused. What am I not understanding? def show(conn, %{"id" =\> id}, current\_user) do bmr = Cpm…

---

## [How to Contribute to Open Source Elixir Projects](https://forum.elixirforum.com/t/how-to-contribute-to-open-source-elixir-projects/16486)

<div class="topic-metadata">

**Author:** [@leifericf](https://forum.elixirforum.com/u/leifericf)\
**Replies:** 2\
**Last updated:** [May 14, 2021, 12:49pm UTC](https://forum.elixirforum.com/t/how-to-contribute-to-open-source-elixir-projects/16486 "2021-05-14T12:49:58Z")

</div>

I think it could be useful to gather some of our communal thoughts and notes on how to contribute to open source Elixir projects. Including dos and don’ts, common practices, etc. This could serve as a starting point for…

---

## [How to put a if else in a function](https://forum.elixirforum.com/t/how-to-put-a-if-else-in-a-function/31726)

<div class="topic-metadata">

**Author:** [@chan11347](https://forum.elixirforum.com/u/chan11347)\
**Replies:** 22\
**Last updated:** [May 22, 2020, 1:45pm UTC](https://forum.elixirforum.com/t/how-to-put-a-if-else-in-a-function/31726 "2020-05-22T13:45:40Z")

</div>

i want to add a condition in the add\_entry to limit the input such like if else in java, any help server.ex def add\_entry(todo\_server, new\_entry) do GenServer.cast(todo\_server, {:add\_entry, new\_entry}) end @impl…

---

## [Best way to generate random unisgned 64-bit integers?](https://forum.elixirforum.com/t/best-way-to-generate-random-unisgned-64-bit-integers/31659)

<div class="topic-metadata">

**Author:** [@ukutaht](https://forum.elixirforum.com/u/ukutaht)\
**Replies:** 7\
**Last updated:** [May 22, 2020, 5:54am UTC](https://forum.elixirforum.com/t/best-way-to-generate-random-unisgned-64-bit-integers/31659 "2020-05-22T05:54:59Z")

</div>

Hey all, wanted to run a quick sanity check by you. I’m building an analytics database and I need to generate random IDs for sessions in the app server. To achieve better compression in the database, I don’t want to use…
