[3.1.0.rc6] looking for template in path with 2 x namespace #2576

Closed
kechel opened this Issue Aug 18, 2011 · 2 comments

Comments

Projects
None yet
2 participants

kechel commented Aug 18, 2011

error:
-- cut --
Template is missing

Missing template mc/ecmodul_kalender/mc/ecmodul_kalender/viewterminmonat, application/mc/ecmodul_kalender/viewterminmonat with {:formats=>[:html], :locale=>[:de, :de], :handlers=>[:builder, :erb]}. Searched in: * "/home/jan/hss/smartkomm/projekte/educentral-git/educentral/app/views" * "/var/lib/gems/1.8/gems/kaminari-0.12.4/app/views"

-- end cut --
Note: 2 x mc/ecmodul_kalender/mc/ecmodul_kalender which should be only once

view to generate the link:
<%= link_to 'Druckbare Monatsliste', viewterminmonat_kalendermodul_path(ecmodul_kalender, :jahr => year, :monat => month, :print => true), :target => '_blank' %>

link looks correct:
https://localhost/mc/ecmodul_kalender/2/monat/2011/9?print=true

route:
get 'mc/ecmodul_kalender/:ecmkalender/monat/:jahr/:monat' => 'mc/ecmodul_kalender#viewterminmonat', :as => :viewterminmonat_kalendermodul, :ecmkalender => /\d+/, :monat => /\d+/, :jahr => /\d+/

log:
ActionView::MissingTemplate (Missing template mc/ecmodul_kalender/mc/ecmodul_kalender/viewterminmonat, application/mc/ecmodul_kalender/viewterminmonat with {:formats=>[:html], :locale=>[:de, :de], :handlers=>[:builder, :erb]}. Searched in:
* "/home/jan/hss/smartkomm/projekte/educentral-git/educentral/app/views"
* "/var/lib/gems/1.8/gems/kaminari-0.12.4/app/views"
):
app/controllers/mc/ecmodul_kalender_controller.rb:147:in viewterminmonat' app/controllers/mc/ecmodul_kalender_controller.rb:141:inviewterminmonat'

controller:
format.html { render :action => 'mc/ecmodul_kalender/viewterminmonat', :layout => "printer"}

I'm not sure if I'm doing something non-standard conform, but this worked with 3.0.

best regards,

Jan

Member

arunagw commented Dec 5, 2011

@kechel Is this a issue with 3.1.3 also?? Can you confirm ??

Member

arunagw commented Dec 7, 2011

@kechel Closing this. Please feel free to open it again if problem still exists.

Thanks :-)

arunagw closed this Dec 7, 2011

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