Skip to content
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

Having problems to make this work with Rail 6.0.3.2 #44

Open
jan-gerritsen opened this issue Sep 9, 2020 · 1 comment
Open

Having problems to make this work with Rail 6.0.3.2 #44

jan-gerritsen opened this issue Sep 9, 2020 · 1 comment

Comments

@jan-gerritsen
Copy link

All was working fine in Rails 4, but I'm currently upgrading to Rails 6.0.3.2 (with Ruby 2.6.6), and riif v1.0.0 and now the line

    respond_to do |format|
      format.iif { render iif: render_to_string, filename: 'myfile' }
    end

gives me this error:
ArgumentError (Invalid formats: #<Mime::Type:0x00007fc16304ceb0 @synonyms=["application/qbookspro", "text/iif"], @symbol=:iif, @string="application/qbooks", @hash=4387365843056142794>):

So it's not that the MIME type did not get registered (otherwise Rails would not know about the application/qbookspro, but something else. I'm very much confused.

@linjunpop
Copy link
Owner

Would you please set up an example app to reproduce this issue? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants