Hello,
I have a weird issue with the ruby Libxml2 ruby bindings in a Rails project.
I use the validate_schema method, with a block which should be called
on each validation error.
The problem is that this block is not always triggered :
specifically, it works with the Webbrick server, but NOT with the
console script, or the thin (which use rack) webserver...
Of course I use exactly the same document and schema.
I've tried development and production environments with no change !
Also another difference between Webbrick and Console/Thin, is with the
error handler.
With Console/Thin, &LibXML::XML::Error::VERBOSE_HANDLER is used, since
the error is printed.
However with webbrick nothing is outputted so either there is no
handler, or it's QUIET_HANDLER
If you need more details than that, please ask...
Also if you feel it's not a Rails' problem, please tell me where I can go !

I tried to check how the gems are loaded in each case, to see any
differences, but I couldn't figure out how it works !

In environment.rb
 config.gem "libxml-ruby", :lib => 'xml', :version => "=1.1.3"

Archlinux :
libxml2 2.7.7-1

Gem
rails (2.3.5)
thin (1.2.7)
rubygems-update (1.3.6, 1.3.5)
rack (1.1.0, 1.0.1)

Regards,

-- 
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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to