-
Notifications
You must be signed in to change notification settings - Fork 84
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
Missing template with version 0.5.2 #100
Comments
@swiehr Thanks. I'll look into it. |
@swiehr Have you had any luck on this? I've tried several ways and have not been able to reproduce it so far, although I have yet to chase it down Redmine context, which I will do next. I would change your code to something more specific (I don't get the specified filename without specifying the template): |
@swiehr How are you integrating axlsx_rails into Redmine? |
@straydogstudio Tried your proposal with explicitly giving the template name, unfortunately to no avail. My Gemfile has this (enabled) group
In my plugins init.rb I have
My models using axlsx have
... although I think that is not relevant when using axlsx templates - checked and found that without that line I get exactly the same exception |
@swiehr Thanks that will help. I meant what data are you exporting into a spreadsheet. This error has cropped up here and there, and I have never been able to reproduce it. No one has been able to provide me with a repo. Given that your setup is based on Redmine, it will be easier for me to reproduce the error; then I can find the problem. Whatever information you can give me regarding your plugin will help. Is the plugin one of your repositories? |
@straydogstudio Unfortunately the plugin is not (yet) open source (developing this at work so it's not me to decide about that) - from my perception it shouldn't be too difficult to reproduce this as I am simply exporting an index view (i.e. the complete table data) into an xlsx. |
@swiehr I will do a straight export. An example plugin would help. Or you could sketch out the relevant details in a gist. |
@straydogstudio Check my small sample Redmine plugin https://github.com/swiehr/xlsx_export (after installation in Redmine will be available from the admin menu) |
@swiehr Thank you very much. I should get a chance to look at this tomorrow night. |
I also get "No template found" from axlsx_rails 0.5.2 or later (currently caxlsx_rails 0.6.2) |
This resolved for me by explicitly adding caxlsx_rails in the container app's Gemfile, rather than pulling it in from another gem's gemspec as a runtime_dependency (even though Gemfile.lock is the same either way) |
@alanq Thank you very much Alan. The automatic inclusion of Caxlsx has been brought up in another issue. I'll look into it. |
I ran into the same problem. render xlsx: 'hoge', template: 'template', formats: :xlsx |
I recently got the same error after upgrading to rails 7.1. However, I resolved this with below code.
Agreed with other's saying that this is not re-producible easily. Because, we have other mail template which follows same syntax and was working as expected. Thanks |
With version 0.5.2 I suddenly get missing template errors with code that works perfectly fine with 0.5.1
Catching the exception I see that the :axslx handler is missing but could not figure out why and how to fix this:
My controller code looks like this:
I am using the gem in different Redmine configurations:
Common is
any hints welcome...
The text was updated successfully, but these errors were encountered: