Using with other controllers #6

Closed
abrausch opened this Issue Feb 1, 2013 · 2 comments

Comments

Projects
None yet
2 participants
@abrausch

abrausch commented Feb 1, 2013

Hi,
if I create a sample create which integrates some reports I get always this erro message:

order by EXTRACT(YEAR_MONTH FROM te.tracedate) ASC;
Rendered ---/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/dossier-2.1.1/app/views/dossier/reports/show.html.haml (7.1ms)
Rendered reporting/show.html.erb within layouts/application (459.7ms)
Completed 500 Internal Server Error in 462ms

ActionController::RoutingError (No route matches {:controller=>"dossier/reports", :action=>"show", :format=>"csv", :options=>nil}):
app/views/reporting/show.html.erb:1:in `_app_views_reporting_show_html_erb__2701691626748388068_70208727835160'

But if I delete the last line in dossier-2.1.1/app/views/dossier/reports/show.html.haml which is:
link_to 'Download CSV', dossier_report_path(:format => 'csv', :options => params[:options]), :class => 'download-csv'

everything is working ok.

Did I miss something?

Greetings
Alex

@adamhunter

This comment has been minimized.

Show comment Hide comment
@adamhunter

adamhunter Feb 5, 2013

Member

Hey @abrausch,

Thank you for reporting this. There is a bug when using the dossier template outside of the dossier controller. We are working to get this fixed and have a new version released today. I'll resolve this issue once we have one.

Thanks,

Adam

Member

adamhunter commented Feb 5, 2013

Hey @abrausch,

Thank you for reporting this. There is a bug when using the dossier template outside of the dossier controller. We are working to get this fixed and have a new version released today. I'll resolve this issue once we have one.

Thanks,

Adam

@adamhunter adamhunter closed this in 5026dd9 Feb 5, 2013

@adamhunter

This comment has been minimized.

Show comment Hide comment
@adamhunter

adamhunter Feb 5, 2013

Member

Hey @abrausch,

We've cut v2.3.0 which should fix your problem. Thanks for reporting it!

Member

adamhunter commented Feb 5, 2013

Hey @abrausch,

We've cut v2.3.0 which should fix your problem. Thanks for reporting it!

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