similar to: rubyful_soup works fine as an RB file but bugs in Rails

Displaying 20 results from an estimated 2000 matches similar to: "rubyful_soup works fine as an RB file but bugs in Rails"

2006 May 18
1
Unnecessary Gem modules loaded under Rails 1.1.2
All, Rails 1.1.2 Win XP Pro Rubyful Soup 1.0.4 htmltools 1.0.9 I am terribly confused as to what pulling in a gem does with respect to how many modules get loaded at runtime. I am using two gems in my app, Rubyful Soup and htmltools. RubyfulSoup requires one module from the htmltools gem (html/sgml-parser). My app requires the RubyfulSoup gem. When I started my app, something was causing
2006 Aug 11
2
name conflicts between act_as_taggable and rubyful_soup
both of them use the class called "Tag" there is a name conflict error when I want to use both of them in rails how can I solve this error? anybody got some suggestion? thx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060811/7f09cb14/attachment.html
2006 Jun 25
0
rubyful_soup replace element
Hi, well, how do i replace an element with rubyful_soup ?? I tried soup = BeautifulSoup.new(input) elemnt = soup.find(''quote'') elemnt = tag(''<div></div>'') elemnt = ''<div></div>'' elemnt.replaceWith(''<div></div>'') elemnt = BeautifulSoup.new(''<div></div>'') elemnt
2006 Mar 22
2
Successfully importing Rubyful Soup objects
All, At the top of my controller, I have: require ''rubygems'' require_gem ''rubyful_soup'' The rubyful_soup gem has been successfully installed. However, when I go to instantiate a class from it, using parser = BeautifulSoup.new(html) I get uninitialized constant BeautifulSoup Is there something else I need to do to see the symbols in the Rubyful Soup gem?
2006 Mar 22
2
RubyGem loading into a controller (High quality question)
INSTALLATION: Ruby 1.8.2 Rails 1.0.0 rubyful_soup 1.0.4 (GEM) FACTS: 0) I have successfully installed the rubyful_soup GEM using (I had previously installed it, which is why the output may look sparse): C:\ruby>gem install -r rubyful_soup Attempting remote installation of ''rubyful_soup'' Successfully installed rubyful_soup-1.0.4 Installing RDoc documentation for
2006 Jan 25
0
screenscraping using htmltools and rexml
Hi, I need to do some screen scraping and I''ve spent a couple hour getting htmltools and rexml do the right thing. Here''s the code: parser = HTMLTree::Parser.new(false, false) parser.feed(res.body) tree = parser.tree.html_node.as_rexml_document I works for one page, but for another I get "undefined method `add'' for #<HTMLTree::Element:0x37f9cc8>" in
2006 May 16
0
htmltools 1.09 doesn''t play nice with ActionPack strip_tags!
All, I''ve discovered an incompatibility between HTMLTools 1.09 (a very handy HTML parser) and ActionPack 1.12.1. Basically, they both do some HTML parsing and they both create a module named HTML::Tag, which causes confusion when said Tag object attempts to be instantiated in the ActionPack context. That said, now I get to choose which one''s namespace to fiddle with. But a
2006 Jul 25
1
RDig document processing error
Hi all, Am having problems using RDig: With this rdig config... cfg.crawler.start_urls = [''http://www.defensetech.org''] cfg.crawler.include_hosts = [''www.defensetech.org''] cfg.index.path = ''/my/path/to/index'' cfg.verbose = true ...I get this output: $ rdig -c config/rdig_config.rb /usr/local/lib/site_ruby/1.8/ferret/index/term.rb:45:
2009 Jun 17
0
New book: Mathematical modeling using R
May I recommend my new book on mathematical modeling to you, which is based on R as a main software tool: Kai Velten: Mathematical Modeling and Simulation, Wiley-VCH, 2009, ISBN 978-3527407583. See also: http://www.wiley.com/WileyCDA/WileyTitle/productCd-3527407588.html http://books.google.com/books?id=Czp1N5UWpyEC List of reviews below. The book covers a broad range of mathematical models
2017 Sep 28
1
rgl crash on windows 7
I have a co-worker who has installed R 3.4.2 on Windows 7. When this person tries to load the rgl package with library(rgl) A dialog box appears with the message: R for windows gui frontend has stopped working I suspect a conflict problem with a dll, but I'm not sure how to identify if this is the problem since R is crashing immediately. Interestingly, when we start R and do NOT load rgl,
2006 Jan 10
1
OT: Scraper library recommendation
Hi all, this is quite off-topic, but I''m sure a lot of people here has experience in the area, so... I''m writing a website scraper script that needs to download a web page, traverse the (X)HTML tree and finally insert data and HTML pieces into a DB. Eventually this data will be served up as RSS and/or Atom. I''m currently using html/tree (htmltools); I''ve also
2006 Jun 05
6
HTML Parsing libraries
Hi, What is the best way to parse HTML? Or is there a simple way to convert a table to an array? I tried beautiful_soup and the built-in htmltools, but have trouble getting them to run. Any pointers? Thanks, Hari -- Posted via http://www.ruby-forum.com/.
2017 Oct 18
1
dygraphs, multiple graphs and shiny
Hi All: This is really getting into the weeds, but I am hoping someone will have a solution. I am trying to use dygrahs for R, within Shiny. The situation arises when I am combining a number of dygraphs into one plot. If I am just in an RNotebook, if you look at: https://stackoverflow.com/questions/30509866/for-loop-over-dygraph-does-not-work-in-r the solution to have the plot shown from a
2007 Jan 21
4
could not install in WinXP
Directory of C:\search_app 01/21/2007 19:37 <DIR> . 01/21/2007 19:37 <DIR> .. 01/21/2007 19:36 427 008 ferret-0.10.13.gem 01/21/2007 19:07 148 992 rdig-0.3.4.gem 2 File(s) 576 000 bytes 2 Dir(s) 45 135 982 592 bytes free C:\search_app>gem install ferret Building native extensions. This could
2006 Jun 27
25
1.1.3 available.
Hello, DHH has just announced the release of Rails 1.1.3 http://weblog.rubyonrails.org/2006/6/27/rails-1-1-3-security-fix-and-minor-fixes rails-1.1.3 activerecord-1.14.3 actionpack-1.12.2 actionmailer-1.2.2 actionwebservice-1.1.3 The announce without the repetition :) "Rails 1.1.3: Security fix and minor fixes Posted by David June 27, 2006 @ 08:07PM We''ve found and fixed a
2022 Oct 29
1
tools:: extracting pkg dependencies from DCF
Thank you Gabriel, Just for future readers. Below is a base R way to address this common problem, as instructed by you (+stopifnot to suppress print). Rscript -e 'stopifnot(file.copy("DESCRIPTION", file.path(tdir<-tempdir(), "PACKAGES"))); db<-available.packages(paste0("file://", tdir));
2006 Mar 17
0
Installed Gems on godaddy.com
Hi, is there a core list of gems that one needs to install in a production environment? Anyways, here''s a current list of installed gems on godaddy.com: Gems *actionmailer 1.0.1* [www] <http://www.rubyonrails.org/> - depends on actionpack <http://www.situationman.com/_h_admin_/gems.html#actionpack>. Service layer for easy email delivery and testing. *actionmailer 1.1.5*
2002 Oct 02
0
rsync rsh XP->Unix Terminal Read cygwin
I can not get rsync to work when sending from my XP box to a Solaris,HPUX,or AIX host using rsh I am using the cygwin version of rsync, and the windows XP version of remsh. Can anybody tell me what is happening? Any hints on what to do next? Administrator@WOTTPAWLOWM-XP1 /cygdrive/e/perforce_data/atlantic_it4sb2/devroot/ src/iwr/impromptuserver/app.exe/child.lib $ rsync -v -n --progress
2016 Nov 04
0
Major Update to rms package: 5.0-0
A major new version of the rms package is now on CRAN. The most user-visible changes are: - interactive plotly graphic methods for model fits. The best example of this is survplot for npsurv (Kaplan-Meier) estimates where the number of risk pop up as you hover over the curves, and you can click to bring up confidence bands for differences in survival curves - html methods for model fit
2016 Nov 04
0
Major Update to rms package: 5.0-0
A major new version of the rms package is now on CRAN. The most user-visible changes are: - interactive plotly graphic methods for model fits. The best example of this is survplot for npsurv (Kaplan-Meier) estimates where the number of risk pop up as you hover over the curves, and you can click to bring up confidence bands for differences in survival curves - html methods for model fit