Open frank-taylor-pcg opened 7 years ago
@frank-taylor-pcg Thanks for reporting this. It doesn't surprise me that some of the examples are out of date. We should have tests for each of the given examples so we can catch these errors as the project evolves :) I'll take a look at this issue soon.
On the ExAdmin.Index page under Override the Actions Column a macro or function named
safe_concat
is used to join the results of thelink_to
methods together. I couldn't find reference to this so I rolled my own. For reference, here's the version that I created:I placed this inside the module where I was redefining the action list, outside the
register_resource
macro definition.Also,
link_to
must be qualified (i.e.,Register.link_to
instead of justlink_to
) as bothExAdmin.Register.link_to
andExAdmin.Utils.link_to
are in scope within the module when usingExAdmin.Register
as shown in the preceding examples.