You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.
I am using add_child_link() in several places around my project to add a common "address" partial, however when I try to move it to a central location (/app/views/shared/_address.erb) I get the following error:
You have a nil object when you didn't expect it!
The error occurred while evaluating nil.klass
I tried to something like add_child_link "Add an address", f, :options => { :partial => "shared/address" } but it didn't help.
What is the recommended way to use this with partials that have a different path or name?
The text was updated successfully, but these errors were encountered:
I am using
add_child_link()
in several places around my project to add a common "address" partial, however when I try to move it to a central location (/app/views/shared/_address.erb) I get the following error:I tried to something like
add_child_link "Add an address", f, :options => { :partial => "shared/address" }
but it didn't help.What is the recommended way to use this with partials that have a different path or name?
The text was updated successfully, but these errors were encountered: