-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(ArgumentError) assign @xxx not available in eex template. #181
Comments
Is there the |
Here is the extract of the IO.inspect(assigns). It does include the changeset assign.
|
Thanks for this. I still do not understand anyway. |
Thanks, This is the complete code for the new.html.drab file:
|
I must say I am quite confused. It should not work, as you try to In Drab, if you want to
|
Thanks for your support. I checked the documenation and change my code. It is working. Best regards |
Reopening as the error message is misleading. |
I am currently getting this alert error in the browser when I click the input checkbox:
"An error occured. Please contact the System Administrator"
Mi current configuration:
Drab 0.10.0
Phoenix 1.3.4
Phoenix_html 2.12.0 (currently locked due to fetch_assign/2 issue)
This is the code:
The commander (payment_order_commander.ex):
The controller (payment_order_controller.ex):
The main template (new.html.drab):
This template is the one the controller renders. I tried using the eex extension instead of drab and experience the same error.
The form (form.html.drab):
The first partial (_invoices.html.drab)
The second partial (_invoice_details.html.drab):
This partial has the input checkbox and drab-change event handeler.
Thanks in advance for the help.
Best regards.
The text was updated successfully, but these errors were encountered: