This project is archived and is in readonly mode.
Missing partial does not return an error in development
Reported by Neil Middleton | April 7th, 2009 @ 05:38 PM | in 2.x
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.
Comments and changes to this ticket
-
thedarkone April 7th, 2009 @ 09:48 PM
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.
-
Neil Middleton April 7th, 2009 @ 11:24 PM
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.
-
Neil Middleton April 7th, 2009 @ 11:51 PM
This is a rubyAmf bug.
/vendor/plugins/rubyamf/util/action_controller.rb line 17: raise e if !e.message.match(/^Missing template/)
-
thedarkone April 8th, 2009 @ 12:10 AM
rubyamf
might be somehow breaking things for you. Neverthless even withrubyamf
installed as a plugin and Rails v2.3.2.1 invendor/rails
I do get an error about missingMissing template home/_nav.erb in view path app/views
. -
Rishav Rastogi April 10th, 2010 @ 11:44 PM
- Assigned user set to Mikel Lindsaar
Seems to be an issues with rubyamf. invalid ticket.
-
Rishav Rastogi April 10th, 2010 @ 11:47 PM
- Assigned user changed from Mikel Lindsaar to Ryan Bigg
close
-
Ryan Bigg April 10th, 2010 @ 11:48 PM
- State changed from new to invalid
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>