Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Missing partial does not return an error in development

#2444

If I call a partial (via render :partial) from a layout and the partial file is missing, no error is returned via the view, or the logs. You need to be in the debugger trying to call the partial manually to see the relevant ActionView::MissingTemplate Exception.

This should really return an error to the user via the logs or directly into the browser.

Reported by Neil Middleton · April 7th, 2009 @ 05:38 PM

State: invalid
Milestone: 2.x
Assigned to: Ryan Bigg Ryan Bigg
Importance: none

Activity

  1. thedarkone
    thedarkone

    Neil, could you please make a 1 controller, 1 view, 1 partial to demonstrate the issue? Just upload it here or make a project on github.

    Thanks.

    April 7th, 2009 @ 09:48 PM

  2. Neil Middleton
    Neil Middleton

    Upon investigation it appears that the problem only occurs when the rubyamf plugin is installed.

    I've attached a sample app showing the issue. This may be a plugin bug.

    April 7th, 2009 @ 11:24 PM

  3. Neil Middleton
    Neil Middleton

    This is a rubyAmf bug.

    /vendor/plugins/rubyamf/util/action_controller.rb line 17: raise e if !e.message.match(/^Missing template/)

    April 7th, 2009 @ 11:51 PM

  4. thedarkone
    thedarkone

    rubyamf might be somehow breaking things for you. Neverthless even with rubyamf installed as a plugin and Rails v2.3.2.1 in vendor/rails I do get an error about missing Missing template home/_nav.erb in view path app/views.

    April 8th, 2009 @ 12:10 AM

  5. thedarkone
    thedarkone

    Nevermind my response then :).

    April 8th, 2009 @ 12:12 AM

  6. Rishav Rastogi
    Rishav Rastogi
    • Assigned user set to Mikel Lindsaar

    Seems to be an issues with rubyamf. invalid ticket.

    April 10th, 2010 @ 11:44 PM

  7. Rishav Rastogi
    Rishav Rastogi
    • Assigned user changed from Mikel Lindsaar to Ryan Bigg

    close

    April 10th, 2010 @ 11:47 PM

  8. Ryan Bigg
    Ryan Bigg
    • State changed from new to invalid

    April 10th, 2010 @ 11:48 PM