1
我有這樣的值對象作爲協議Phoenix.HTML.Safe沒有實施藥劑鳳凰
%{"Friday" => [], "Monday" => [], "Saturday" => [], "Sunday" => ["3:0-4:0", "6:0-7:0"], "Thursday" => [], "Tuesday" => [], "Wednesday" => []}
我想表明它在我的電子郵件模板的看法,我只是說作爲
<p>Schedule: <%= @schedule %></p>
我得到這個錯誤
** (Protocol.UndefinedError) protocol Phoenix.HTML.Safe not implemented for %{"Friday" => [], "Monday" => [], "Saturday" => [], "Sunday" => ["3:0-4:0", "6:0-7:0"], "Thursday" => [], "Tuesday" => [], "Wednesday" => []}
什麼是最好的方式來顯示它在HTML中?