Hello - new RoR developer here need some help from you experts. I am writing a custom sidebar for typo (to extract events from my google calendar) and have hit upon a problem that I can''t resolve. I want to use strptime to create a date object but when I hit that line of code the method is bombing without giving me any error messages to the console or the development.log file. Any ideas why a command would fail to work in rails (it works fine in a standalone ruby program I am using for testing)? I have included the exact same "requires" How can I find the error message that is being generated? Why is it not going to the console or dev log? Is it normal for rails to "swallow" errors like this? (This should probably be in the typo forum but apparantly new topics are not allowed there.) -- Posted via http://www.ruby-forum.com/.
Steve, Can you post your code for this? Its a little hard to tell what might be happening from just an explanation. You are right that errors should show up in development.log (provided your in development environment). Is anything being written there? You should at least see the initial request for the action etc., even before it crashes. If you get anything in the log, please post that too. Jeff On 6/28/06, Steve Harper <steve-ruby@sharpers.com> wrote:> > Hello - new RoR developer here need some help from you experts. > > I am writing a custom sidebar for typo (to extract events from my google > calendar) and have hit upon a problem that I can''t resolve. I want to > use strptime to create a date object but when I hit that line of code > the method is bombing without giving me any error messages to the > console or the development.log file. > > Any ideas why a command would fail to work in rails (it works fine in a > standalone ruby program I am using for testing)? I have included the > exact same "requires" > > How can I find the error message that is being generated? Why is it not > going to the console or dev log? Is it normal for rails to "swallow" > errors like this? > > (This should probably be in the typo forum but apparantly new topics are > not allowed there.) > > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060629/21124a2a/attachment-0001.html
Thanks for your response - I was able to find a solution to this: - I discovered the exact error by adding a breakpoint() to my code and then running script\breakpointer and getting an irb prompt at the moment the code was breaking. I discovered that strptime was giving me a "undefined method `strptime''" - Googling this I discovered http://www.germane-software.com/projects/rexml/ticket/33 which reports a conflict between rexml and strptime. - The supression of error messages seems to be something to do with the way that typo sidebars are written. Jeff Everett wrote:> Steve, > > Can you post your code for this? Its a little hard to tell what might be > happening from just an explanation. > > You are right that errors should show up in development.log (provided > your > in development environment). Is anything being written there? You should > at > least see the initial request for the action etc., even before it > crashes. > If you get anything in the log, please post that too. > > Jeff-- Posted via http://www.ruby-forum.com/.