#elixir-lang - 30 March 2019
« Back 1 day Forward 1 day »
[00:29:53] vhbueno: Hi! I'm new to phoenix. I'm trying to have a subfolder inside the "templates" folder, but templates inside this one doesn't seems to get compiled. I already tried to add a pattern the use Phoenix.View call, with no success. Here is my code: quote do use Phoenix.View, root: "lib/docdocs_web/templates", pattern: "**/*", namespace: DocdocsWeb
[01:23:04] vhbueno: rawtaz: I got it. Inside my controller's index method, I was trying to render "app/controller_name/index" instead of only "index". Now it is working. =)
[07:49:42] Nicd-: you would be inspecting the HTML with your browser's devtool's inspector anyway, and that will render a tree view of the DOM, no matter what the HTML looks like
[09:27:37] PragTob: And once for the IRC folks, benchee has finally released in version 1.0! Changelog: https://github.com/bencheeorg/benchee/blob/master/CHANGELOG.md#100-2019-03-28 Blog post: https://pragtob.wordpress.com/2019/03/28/released-benchee-0-99-1-0-friends/
[09:46:54] Beam`: does anyone know if it's possible to use on_conflict and conflict_targets with Repo.update_all/3 or there is any alternatives to handle a possible constraint error on the database level?
[10:52:14] vasilakisFiL: hi! I am trying to implement merge sort in Elixir to learn functional programming and elixir, but I am stuck. Specifically, I get an error as explained here: https://gist.github.com/vasilakisfil/4563c9f014ce90271d76a90d52869a16
[10:53:04] vasilakisFiL: I am wondering why the '\t' appears. Shouldn't after split, list_a be just an empty list? ()
[10:59:12] dysfun: ecto doesn't seem to be fetching a column from my database when i do a get. the field exists in the database and is populated with a value. the declaration in the schema is just `field :next_depth, :integer, default: 1`. any ideas?
[13:57:35] kapil____: `conn |> put_session(:current_user_id, user.id)` also put session on subdomain too?
[16:07:41] lpil: It's mostly going well. I'm trying to remember how IRC works. It has been a few years
[16:09:57] lpil: I think there might be a few hex packages that define that operator, if you're interested in that kind of thing
[16:14:21] dysfun: and while some may argue for the taste of an operator, it's not much of an imposition
[20:12:55] OvermindDL1: Ankhers: always feel free, if I'm available I'll respond otherwise I will whenever I get on my bouncer. 🙂
[23:15:33] fyber: So I'm following an (older) guide that uses the mix task phx.gen.model, but this no longer exists in v1.4.3. What do I use instead?
[23:16:31] fyber: Also would it be accurate to say that Phoenix/elixir are generally API unstable? Most of the mix tasks (1.3.X > 1.4.X) have been renamed "phx" < "phoenix" even though it's not a major version bump...
[23:33:17] rogersanctus: I am not active on elixir for a time. But if you can give a look at: https://hexdocs.pm/phoenix/Mix.Tasks.Phx.Gen.Json.html
[23:42:52] rogersanctus: fyber, there is no Model in phoenix anymore. I don't recall where I saw about this change. But the documentation for phoenix is that I linked. There is also this tutorial about JSON Api: https://lobotuerto.com/blog/building-a-json-api-in-elixir-with-phoenix/