similar to: rubygems fail - require hpricot!

Displaying 20 results from an estimated 1100 matches similar to: "rubygems fail - require hpricot!"

2013 Jan 07
4
JSON::ParserError in controller
Hi All I''m trying to build an application which requires to scrap information from a webpage. On trying to perform the action, I get an error while trying to convert the html data to JSON. Has anyone experienced this before and if so can you please tell me how to solve this problem ? Please see below for code snippet and error log. Thanks in advance Anush require
2009 Jun 06
2
Starting an Ap: fast_xs.bundle: [BUG] Bus Error
I''m running Ruby 1.8.7, Rails 2.3.2, and Gem 1.3.4 I''m a newb, so bare with me... I''m reading Simply Rails 2. The book tells me to enter: $ rails shovell Then, $ sudo gem install mongrel Then, $cd shovell $ruby script/server However, when I type in that last bit, I get: LOTS OF STUFF/.gem/ruby/1.8/gems/hpricot-0.8.1/lib/fast_xs.bundle: [BUG] Bus Error ruby 1.8.7
2011 May 01
2
More detailed Test::Unit error report
Hi, I''m starting to use Test::Unit to create unit tests for my Rails Applications/Plugins. I don''t have much experience in Ruby Unit Testing. The problem is that the output report is very simple and it is very difficult to discover where is the error. Test::Unit does not show the line number of the error and the Stack Trace printed using the --trace option does not help either.
2009 Aug 25
1
OFX-parser
I am trying to parser a ofx file .I have installed ofx-parser gem. But I am getting error: no such file to load -- hpricot_scan I have checked my gem folder ,I have got hpricot-0.8.1 which is > hpricot-0.6(requirement of ofx-parser).. My code in the General controller look like require ''rubygems'' require ''ofx-parser'' def testing ofx =
2011 May 27
2
Can't install RedCloth gem, fails to compile
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi there, I''m trying to install the RedCloth gem on my Arch Linux (64bit) system, but hadn''t had success yet, RedCloth doesn''t seem to compile. Here''s the installation output: ====================================== $ LANG=en_US.utf8 sudo gem install RedCloth Building native extensions. This could take a while...
2012 Jan 27
3
How to test the model dependence ?
Good morning, I''m new to rails and am having some basic questions in development. See if anyone can help me with a test problem. I need to test if my model "Procedure" is linked to the workflow. If not, the system must acknowledge an error. Below is the code that is in the file test \ unit \ procedure_test.rb. require ''test_helper'' class ProcedureTest <
2011 May 20
3
"no such file to load -- rails/commands/runner (LoadError)"
Hi, I am using ruby 1.9.2 and rails 3 for my application. I have written a bash script which I want to run in cron. If I directly run the bash file it runs. If I run it through the cron I get the following error:- "/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'': no such file to load -- rails/commands/runner (LoadError) from
2007 Apr 18
1
[Bridge] Bridging multiple tap interfaces
Is it possible to bridge multiple "tap" interfaces in Linux? When two tap interfaces are bridged together they are unable to "see" each other but they can bridge to external Ethernet interfaces or the hosts IP attached on the bridge. I saw some mention in the mailing list archives on bridging two user space processes but it didn't seem to have any conclusion. I also
2008 Apr 09
5
Peculiar Hpricot error in Rails app
Hi, I have been stumped by this error Hpricot is generating in my rails app. The error looks like this: $ script/console Loading development environment (Rails 2.0.2) >> str = ''<p>lorem ipsum <a href="http://dolor.com/">dolor</a> sit amet.</p>'' => "<p>lorem ipsum <a href=\"http://dolor.com/\">dolor</a>
2011 May 25
1
can't load hpricot gem in rails 3
This is in windows .. So from irb, I can load hpricot ok. (ruby 1.8.7) C:\Users\Laurence\rails-play\plug-test>irb irb(main):001:0> require ''hpricot'' LoadError: no such file to load -- hpricot from (irb):1:in `require'' from (irb):1 irb(main):002:0> require ''rubygems'' => true irb(main):003:0> require
2007 Jun 11
3
hpricot as dependency for building rspec?
It looks to me that hpricot is a dependency to building rspec: euclid% rake pre_commit (in /Users/smtlaissezfaire/ruby/projects/rspec/hpricot) rake aborted! Could not find RubyGem hpricot (>= 0.0.0) /Users/smtlaissezfaire/ruby/projects/rspec/hpricot/rakefile:9 (See full trace by running task with --trace) Let me know if I''m wrong. Otherwise, I''ll submit a patch in the docs.
2003 May 31
5
CAC ADIT600 / T400 config
I know a few ppl have those CAC Adit 600's with t400 I can't seem to get my second span up on the T400 connected to the second spand on the adit (A:2) A:1 seems ok Can someone post they zaptel.conf span defintions And maybe a "print config" from the adit 600 cli I think my issue is timing srcs the coding, framing. bld out are all matched thx -------------- next part
2006 May 23
4
What about T400 T1 cards?
Can anyone clue me in about these T400 T1 cards I see advertised? I hear they are Digium Clones. Is there some reason to avoid these? How do they compare to TE410P's for example. Bart
2010 Feb 15
5
help on how append html tag
Dear all, @doc = Hpricot(open("#{RAILS_ROOT}" + "/public/server_exe/#{list.file_path}")) i need to add <img src = "/ScreenCapture/#{@file_name}"/> element to my @doc hpricot instance.. Please help me... how can i add the above img src element to the @doc hpricot instance.. Thank you -- Posted via http://www.ruby-forum.com/. -- You received this message
2006 Jul 07
2
Testing views with Hpricot
assert_tag smells bad. Hpricot smells nice (apricotty!). Testing your views with Hpricot: http://www.lukeredpath.co.uk/index.php/2006/07/07/testing-your-rails- views-with-hpricot/ Big thanks to _why for a great little library! Feedback is appreciated. rSpec integration coming soon (hopefully!). Cheers, Luke Redpath contact@lukeredpath.co.uk -------------- next part -------------- An HTML
2009 Sep 25
1
how to remove bogusetag by hpricot?
I have use hpricot to translate users'' input html. I want to remove bogusetag as follows: >>doc = Hpricot "<p> test world</b></p>", :xhtml_strict => true =>#<Hpricot::Doc {elem <p> " test world" {bogusetag </b>} </p>}> >>doc.to_s =>"<p> test world</b></p>" what I expected is
2010 Mar 07
8
Parsing XML file with no style info with Hpricot
Hello, I''ve been trying for hours to parse an XML using Hpricot. Usually it''s not a problem. Here''s my simple code: #This works and outputs the proper xml data @url1 = ''http://www.sportingnews.com/stories/sportingnews/MLB/rss.xml'' @page1 = Hpricot(open(@url1)) <%= @page 1 %> #This does not work, and I''m scratching my head @url1 =
2011 Apr 28
1
sqlite db transfer
Hi all, My question is related to the sqlite db I''m using with my rails app. I was thinking if its possible to save the file (ROR_DIR/db/development.sqlite) and then if somehow the db gets erased or if I do a rollback and then a migrate can I retrieve my information by copying the file back to the same location ? Since I''m hosting the app from my linux box and most of colleagues
2006 Nov 02
5
Adding fields to a form
Is there a decent way to add a field to a form before posting it? I haven''t tried using HPricot manipulations just yet, since I can''t ever find really solid docs on hpricot.... Form#[]= doesn''t work because it first searches only pre-existing fields. I''m investigating how to write a patch now. But I thought maybe someone here might have an idea.
2011 May 27
7
Rails 3.1.rc1 + gem coffee-script - WEBrick and Unicorn hangs.
Environment: rvm ruby 1.9.2-p180 rails 3.1.rc1 Conditions: gem "coffee-script" # in Gemfile at least one file with .js.coffee (even empty inside) in app/assets Result: WEBrick or Unicorn hangs. Only kill -9 <pid> helps. P.S. What additional info should I provide? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.