私は、このテンプレート eexテンプレートと@変数のデバッグ方法は?
<%= form_for @changeset, bid_path(@conn, :update, 1), [method: :put], fn f -> %>
<%
require IEx
IEx.pry
%>
<%= if @changeset.action do %>
<div class="alert alert-danger">
<p>Oops, something went wrong! Please check the errors below.</p>
</div>
<% end %>
どのように私はIEXコンソールで@changeset表示することができますがありますか?私はこれをやろうとしているときにエラーが吹くさ:フェニックスのeex
テンプレートに
pry(5)> @changeset
** (ArgumentError) cannot invoke @/1 outside module
(elixir) lib/kernel.ex:3960: Kernel.assert_module_scope/3
(elixir) expanding macro: [email protected]/1
web/templates/bid/edit.html.eex:5: (file)
い '割り当て[ :changeset] '仕事? – Dogbert
@Dogbertはい!ありがとう私はどこでもそれを見つけることができませんでした:) – piotrze