Ruby on Rails
Wednesday, December 25, 2013
On Tue, Dec 24, 2013 at 8:09 PM, Ulysse Carion <ulyssecarion@gmail.com> wrote:
Hi all,I recently spent an interesting hour trying to figure out why a particular render wasn't working. I was getting the error message:syntax error, unexpected ')', expecting '='The line that was "failing" (that is, the very first line in the stack trace produced) looked like this:<%= render student %>The error, of course, wasn't there; it was in the partial that "student" corresponded to (the layout "/users/_user.html.erb"). Once I realized this, it took all of three seconds to find a typo I had made.I think this is a bit of a usability issue -- is there any way I could configure (or patch) Rails to get the stacktrace to show me the partial that was failing, rather than the penultimate (and perfectly fine) layout?I hope I'm explaining this issue coherently.Thanks,Ulysse
You are. I don't disagree with your sentiment here. Even with the better_errors gem this isn't shown. I end up tailing the log files which does show the actual error messages.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAHUC_t9egP-zqAvVtoRv2-F2PrDGbwgzz%3DMoAa1KcfX4ciygyw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment