Fix problem. It was necessary to add in Gemfile string "gem
''libxml-
ruby''".
On 15 июл, 19:21, Mastedm
<mast...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi all!
>
> I try to use libxml-ruby with my ROR-application and get the following
> error message: "uninitialized constant AdminController::XML".
>
> From controller file:
>
> require ''rubygems''
> require ''xml/libxml''
> ...
> parser = XML::Parser.new
>
> And the same code in irb work correctly:
>
> irb(main):001:0> require ''rubygems''
> => true
> irb(main):002:0> require ''xml/libxml''
> => true
> irb(main):003:0> parser = XML::Parser.new
> => #<XML::Parser:0x7fc460cf11c0>
>
> Why it doesn''t work in Rails?
>
> (Rails 3.0.0.beta4, libxml-ruby-1.1.4)
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.