Latest #controller Threads 
Hello!
I’m trying to make sure a parameter in my Phoenix changeset can only be set by the server during a POST request.
I have a blogs ...
New
I have some checks to do before returning a response to the user in controller: checking file existence in S3, checking some DB fields, c...
New
The following is a code snippet from the newly generated Phoenix project:
defmodule HelloWeb.PageController do
use HelloWeb, :controll...
New
How do you provide pagination and filtering to your Phoenix Framework JSON APIs?
Couple of years ago I used Scrivener and Inquisitor but...
New
Dear all,
I try to figured out does Phoenix support subfolder → subfolder in folder lib such as :
lib
→ myapp_web
→ controller
→ ...
New
Background
I am trying to create a mock for one of my behaviours. To this end I am using Hammox (a variation of Mox which extends the api...
New
Looking for a way to distinguish whether e. g. document.html or document.pdf was requested and to serve appropriate content format in ret...
New
Hi,
I’m trying to test my config settings.
To do that, i use a module that load them: like this
defmodule App.SettingsBehaviour do
@...
New
Hello, I need to set up file download that happens dynamically at runtime. Essentially there are images stored on s3 that need to be down...
New
Hello!
We’ve released Permit - a new open-source project at Curiosum aiming to make it easier to manage permission-based access control ...
New
This Week's Trending
This Month's Trending
This Year's Trending
Hello!
We’ve released Permit - a new open-source project at Curiosum aiming to make it easier to manage permission-based access control ...
New
Last Three Year's Trending
Hello! Sorry for the dumb question but how do I display a variable in template. Let’s say I have an input in template and a button for su...
New
How do you provide pagination and filtering to your Phoenix Framework JSON APIs?
Couple of years ago I used Scrivener and Inquisitor but...
New
Hello, I need to set up file download that happens dynamically at runtime. Essentially there are images stored on s3 that need to be down...
New
Background
I am trying to create a mock for one of my behaviours. To this end I am using Hammox (a variation of Mox which extends the api...
New
Hi,
I’m trying to test my config settings.
To do that, i use a module that load them: like this
defmodule App.SettingsBehaviour do
@...
New
Dear all,
I try to figured out does Phoenix support subfolder → subfolder in folder lib such as :
lib
→ myapp_web
→ controller
→ ...
New
Hello, all!
I need to be able to get POST data in my Phoenix API, acknowledge as quickly as possible, then use the POST data to process ...
New
Looking for a way to distinguish whether e. g. document.html or document.pdf was requested and to serve appropriate content format in ret...
New
Hello!
I’m trying to make sure a parameter in my Phoenix changeset can only be set by the server during a POST request.
I have a blogs ...
New
I have some checks to do before returning a response to the user in controller: checking file existence in S3, checking some DB fields, c...
New
The following is a code snippet from the newly generated Phoenix project:
defmodule HelloWeb.PageController do
use HelloWeb, :controll...
New
Trending Over Three Years
Simple question re. code organization: do you do preloads in context, or in controller/liveview?
Say a basic function in context looks l...
New
In an action I need to check numerous times if certain params have been passed. Some params are optional, others depend on others. That i...
New
Hi there,
I have a controller with an action that renders some html. Now I want to extend that action to render some json when the conte...
New
A lot of information can be gathered from the Controller using little-used functions like:
Phoenix.Controller.current_path(conn),
Phoen...
New
I am currently working on an Elixir application and I would like to implement role-based and access-based authorization. In Spring Securi...
New
Hi
How can I add a query string like ?foo=bar?
redirect(conn,
to:
Routes.user_path(
conn,
:show_u...
New
Phoenix 1.6.6 phx.new puts some new plugs on top of router.ex these days. Those are:
plug :fetch_live_flash
plug :put_root_layout, {Phx...
New
Just getting familiar with Elixir & Phoenix and was hoping for some clarity and direction. First, is it a good habit to have multiple...
New
Mix 1.8.1 (compiled with Erlang/OTP 21)
Phoenix v1.3.4
I made an phoenix app (frontend) as the (View Controller) and separate another p...
New
For some of my model methods (like creating or updating entities) I need to access the currently logged in user’s id. I have managed to d...
New
I am currently going through the Programming Phoenix 1.4 book and so far am really enjoying it. I didn’t think I’d appreciate a lack of ‘...
New
Hi! I’ve been experiencing with Phoenix lately and was wondering if the PRG (Post Redirect Get) technique is relevant or there’s a better...
New
I was trying out a pattern I haven’t tried before: sending a message from a regular API controller to a LiveView process.
See code below...
New
Any Simple validation like checking two fields if the same without Ecto, and Schema
New
Hi all, I’m using Phoenix with Bootstrap and I’m having some trouble figuring out the best way to set the active navbar item.
In Bootstr...
New
Latest on Elixir Forum
Get money off!
The Pragmatic Bookshelf
35% off any eBook
Manning Publications
45% off any item
ElixirCasts
10% off for life
The Pragmatic Studio
20% off any course
AppSignal
10% off for 12 months
Honeybadger
10% off for 12 months
Simply use coupon code "devtalk.com" or "elixirforum" at checkout!
Filter by Type:
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #exunit
- #elixirconf
- #discussion
- #javascript
- #podcasts
- #code-sync
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #api
- #processes
- #forms
- #metaprogramming
- #security
- #performance
- #hex







