Skip to content

Missing template with version 0.5.2 #100

Description

@swiehr

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:

ActionView::MissingTemplate
Missing template my_class/index, application/index with {
  :locale=>[:en], 
  :formats=>[:xlsx], 
  :variants=>[], 
  :handlers=>[:erb, :builder, :raw, :ruby, :jbuilder, :rsb]
}

My controller code looks like this:

respond_to do |format|
  format.html { render :template => 'my_class/index', :layout => !request.xhr? }
  format.api
  format.xlsx { render :filename => "my_class.xlsx" }
end

I am using the gem in different Redmine configurations:

  • Redmine 3.2.0, Ruby 2.2.5, Rails 4.2.5.1
  • Redmine 3.3.3, Ruby 2.3.1, Rails 4.2.7.1

Common is

  • axlsx (2.1.0.pre a2259b0)
  • axlsx_rails (0.5.2)

any hints welcome...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions