mgwidmann / scrivener_html

HTML view helpers for Scrivener
MIT License
125 stars 206 forks source link

Bug in find_path_fn #84

Closed l-vincent-l closed 4 years ago

l-vincent-l commented 5 years ago

I'm trying to understand this line :

https://github.com/mgwidmann/scrivener_html/blob/master/lib/scrivener/html.ex#L152 path = path_args |> Enum.reduce(name_for(List.first(entries), ""), &name_for/2) It calls namefor which is a one liner: ```"#{acc}#{if(acc != "", do: "")}#{Phoenix.Naming.resource_name(model.struct)}"`` and I don't understand whypath_args` has to be a model.

Am I missing something ?

mgwidmann commented 5 years ago

Hmm, not sure I remember to be honest. What is it you're having an issue with? Is there an exception you're receiving?

mgwidmann commented 4 years ago

Closing as this hasn't seen any traction in a long time.