I''m back, with a newly formatted drive and fresh Ruby and Rails
installation as described here
http://hivelogic.com/narrative/articles/ruby-rails-mongrel-mysql-osx
And the exact same problem.
This is driving me absolutely nuts because each time the error occurs it
totally breaks my app and I have to start with a fresh rails project,
copy the code over, and try again until the same friggin thing happens
again. Maddening!
I''m thinking it has to be something specific to my application, so here
are all the relevant files, I''m at your mercy:
http://yachttom.com/misc/rails/
Most of the code is in the admin_controller.rb and admin/add_log.rhtml
files.
Basically this is supposed to take a url to a pdf of a day''s worth of
crime summaries, download and convert the pdf to text using rpdf2txt,
then parse each line of the resulting text into an Incident object and
save it to the database, and save the url and date in a separate
database as a DailyLog object.
It has worked fine in the past. I tried resurrecting it again after a
few months, and it mostly worked except when the form is sent the data
doesn''t get seem to get passed here: @log = DailyLog.new(params[:log])
thus it isn''t able to find the URL that was entered.
The bigger problem was that the weird error mentioned in my first post
came back and won''t go away.
Please please please take a moment to look over the code and see if
there''s any stupid errors or something else I''m missing. This
is my
first rails project and other than this ridiculously agravating error I
really like it.
Thank you,
Tom
Aaron wrote:> This is more of a guess than anything else but I think you might a have
> a problem with your ruby setup. The error your getting "uninitialized
> StringScanner object" does not appear anywhere in rails and
I''ve never
> seen a rhtml file fail on line #0.
>
> On my machine that error message is in a binary file called
> strscan.bundle in this location:
> /usr/local/lib/ruby/1.8/i686-darwin8.7.1/strscan.bundle
>
> I would try reinstalling ruby possibly even compiling it yourself. You
> might also try posting this to the ruby list.
>
> Aaron
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---