Latest #controller Threads Top

Reshuffle6795
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
acrolink
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
ttys000
The following is a code snippet from the newly generated Phoenix project: defmodule HelloWeb.PageController do use HelloWeb, :controll...
New
acrolink
How do you provide pagination and filtering to your Phoenix Framework JSON APIs? Couple of years ago I used Scrivener and Inquisitor but...
New
ariandanim
Dear all, I try to figured out does Phoenix support subfolder → subfolder in folder lib such as : lib → myapp_web → controller → ...
New
Fl4m3Ph03n1x
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
silverdr
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
newelixiruser
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
chris-menz
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
vincentvanbush
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 Top

This Month's Trending Top

This Year's Trending Top

vincentvanbush
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 Top

ltgaxkeh
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
acrolink
How do you provide pagination and filtering to your Phoenix Framework JSON APIs? Couple of years ago I used Scrivener and Inquisitor but...
New
chris-menz
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
Fl4m3Ph03n1x
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
newelixiruser
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
ariandanim
Dear all, I try to figured out does Phoenix support subfolder → subfolder in folder lib such as : lib → myapp_web → controller → ...
New
jarvism
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
silverdr
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
Reshuffle6795
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
acrolink
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
ttys000
The following is a code snippet from the newly generated Phoenix project: defmodule HelloWeb.PageController do use HelloWeb, :controll...
New

Trending Over Three Years Top

josefrichter
Simple question re. code organization: do you do preloads in context, or in controller/liveview? Say a basic function in context looks l...
New
Rijidaru
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
inhji
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
catra
A lot of information can be gathered from the Controller using little-used functions like: Phoenix.Controller.current_path(conn), Phoen...
New
alichoopani
I am currently working on an Elixir application and I would like to implement role-based and access-based authorization. In Spring Securi...
New
thojanssens1
Hi How can I add a query string like ?foo=bar? redirect(conn, to: Routes.user_path( conn, :show_u...
New
silverdr
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
richjdsmith
Just getting familiar with Elixir & Phoenix and was hoping for some clarity and direction. First, is it a good habit to have multiple...
New
sewer_r4t
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
acrolink
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
richjdsmith
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
thiagomajesk
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
coen.bakker
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
sewer_r4t
Any Simple validation like checking two fields if the same without Ecto, and Schema
New
zizheng
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
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement