Top "Phoenix-framework" questions

Elixir Web Framework targeting full-featured, fault tolerant applications with realtime functionality

How can I schedule code to run every few hours in Elixir or Phoenix framework?

So let's say I want to send a bunch of emails or recreate sitemap or whatever every 4 hours, how would …

elixir phoenix-framework
How to Log something in Controller when Phoenix Server is running?

I'm trying to print some debug information from one of my Controllers in my Phoenix app when the server is …

elixir phoenix-framework
How to generate a random url safe string with Elixir

I need to be able to generate random url safe strings so I could use those in links (like in …

elixir phoenix-framework
How to check if a string is blank in Elixir

I mean a string is blank if it's empty or contains whitespaces only. For example, "", " " and "\n" are all blank. …

elixir phoenix-framework
How to read config variable in Phoenix / Elixir?

I'd like to set the title of my app in my/config/config.exs file: config :my, My.Endpoint, url: […

elixir phoenix-framework
Is there a Phoenix equivalent to Rails Console

I'm just learning Phoenix and Elixir and I'm coming from Ruby/Rails where I work in the REPL using pry …

elixir phoenix-framework ecto iex
How to store array with Ecto using Postgres

I would like to store an array of floating point values with Ecto using Postgres. I'm using Ecto with the …

postgresql phoenix-framework ecto
How to build WHERE IN array clause with Ecto?

How to find posts in given List of ids? This isn't working: posts = Post |> where(id: [1, 2]) |> Repo.all …

elixir phoenix-framework ecto
Elixir map check if not empty and key exists

I am trying to figure out a way to check if the params hash in a Phoenix app (using Elixir) …

elixir phoenix-framework ecto
What's the difference between `def` and `defp` in the Phoenix Framework?

I'm going through the Programming Phoenix book and I am wondering what the difference between def and defp is. There …

elixir phoenix-framework