Skip to content

Commit

Permalink
fixing html generator for phoenix 1.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
martinos committed May 31, 2016
1 parent 80d18dd commit 9d4d510
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/mix/tasks/phoenix.gen.html.slime.ex
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ defmodule Mix.Tasks.Phoenix.Gen.Html.Slime do
path = binding[:path]
route = String.split(path, "/") |> Enum.drop(-1) |> Kernel.++([plural]) |> Enum.join("/")
binding = binding ++ [plural: plural, route: route, attrs: attrs,
binary_id: opts[:binary_id],
sample_id: sample_id(opts),
inputs: inputs(attrs), params: Mix.Phoenix.params(attrs),
template_singular: String.replace(binding[:singular], "_", " "),
Expand Down

0 comments on commit 9d4d510

Please sign in to comment.