This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

ericteubert
Hi, My use case: I allow CNAMEs in my app, allowing users to bring their own hostname for public pages. My idea then was to use host in...
New
sodapopcan
As someone who had a lot of initial interest in Hologram, I’m only just diving into it now. It’s feeling magical being able to write Eli...
New
Gigitsu
I was reading the Localized routes and path prefixes section of the Phoenix.VerifiedRoutes and I found this line: In this case, you wou...
New
marcuslankenau
Hello, I’m currently in the process of rewriting parts of a Phoenix application. The frontend is primarily a React single-page app, but ...
New

Last Three Year's Trending Top

thiagomajesk
Hi everyone! I’m trying to find a way to add a default value on a route param in Phoenix. I’ve searched in the forum but couldn’t find an...
New
stefpankov
I need to use the forward macro in my application’s router only if a configuration flag is true, otherwise I don’t need to forward. I’ve ...
New
SophieDeBenedetto
I’m developing a Hex package that provides a set of LiveView routes mounted from the router via live '/path', LiveViewName, session: [:bl...
New
budgie
I’m trying to find out a good way to manage config in production, but the default Dockerfile from mix phx.gen.release --docker` compiles ...
New
hoetmaaiers
I want to redirect the Phoenix router to a specific page so “/” renders the first navigation item. Currently I do this using a root page...
New
ajaxarrow
Hello everyone. I’m currently following an Elixir course, and I’ve run into an error stating that the Routes module is undefined. The cou...
New
Udi
I have routes that look like this: get("/post/:slug_and_id", PostController, :show) get("/post/:slug_and_id/comment/:comment_id"...
New
AGURRU
Hi I am struggling to achieve the flow that I would like. I have a form that a user submits and if successful I redirect the user to an e...
New
blackfist
I’m following the directions for the Getting Started project at hexdocs.pm. I’ve gotten to the guide on Contexts here: https://hexdocs.pm...
New
amaterasu
I have an umbrella project with N apps, all with the same web structure, but different db and possibly language. Since the templates are...
New
sparkertime
My Phoenix app has a variety of scopes distinguished by host as follows: scope "/", LockerWeb, host: "host.example.com" do pipe_th...
New
kamaroly
Hi all, I am working on an application with routers separated by their domain. The application has MyApp.Expenses.Router, MyApp.Invento...
New
dacz
I’m building an app that would handle request for bare domain as well as for subdomains. Each subdomain is client space. I have very dif...
New
OmarGoubail
Hello, I am working on an app and I want to separate admin and user routes to different subdomains, I found an article how-to-serve-multi...
New
travisf
I am working on converting an existing application to a multi-tenant one with subdomains enforcing the organization. Tenants have an “ad...
New

Trending Over Three Years Top

iacobson
Hi, What would be a good way to pass some information from the conn to the LiveView socket ? Let’s assume the following example router...
New
ZastrixArundell
I am trying to use the Router file to redirect all users to the login page if they are not logged in and I figured I could do that by usi...
New
catra
A lot of information can be gathered from the Controller using little-used functions like: Phoenix.Controller.current_path(conn), Phoen...
New
hubertlepicki
So I have the umbrella project that consists of user_interface and admin applications. I want to display some links from user_interface b...
New
thojanssens1
Hello :wave: In the router.ex file, I have the following route: resources "/users", UserController In a Controller, I can use the rout...
New
ggerico
I try to reproduce the "Context" example in the phoenix guide. But instead of defining authenticate_user in the router.ex file, I did it ...
New
fireproofsocks
I’m working on building a GraphQL API using Phoenix. For now, we have the Graphiql browser IDE set up on its own dedicated route so othe...
New
benonymus
Hey I have this in my router resources("/recordings", RecordingController) and i have some auto generated code and the index and show i...
New
nicolas.blanco
Hello! When defining multiple routes on the same controller and same action with different named parameters like: get "/products/:foo",...
New
ksherman
Hiya! Super new to the Elixir/Phoenix lang (enjoying it so far!). This might be a really silly question, but have had a hard time finding...
New
MisterD
Hi, I was thinking about simple user settings for Permalinks. Something like Wordpress has: https://codex.wordpress.org/Using_Permalink...
New
nickwdm
Hello, I have a question regarding how phoenix_swagger mentions in their docs that one can have multiple routers as in the following code...
New
thojanssens1
In the docs for Phoenix Routing we can see several examples such as below, where a parameter is a boolean. Routes.user_path(Endpoint, :s...
New
vlad.grb
Is there any way to split Router code into few files or at least merge N routers into one?
New
optikfluffel
Having a View, with a function using the Routes.*_url helper, everything works fine, until I try to test this function directly. defmodu...
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