Displaying 20 results from an estimated 20000 matches similar to: "Using nokogiri"
2011 Dec 15
4
Scrapping Content from a website
Hey all,
I want to scrap some content from a website to rails application and
wants to authenticate the url of the website which I want to scarp so
please help me out....
Thank You!!!
--
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
2011 Feb 20
7
Using Nokogiri to insert a <span> tag into existing text
All,
I''m using Nokogiri to handle the following problem:
I have a piece of HTML, and for certain text nodes, I need to insert
<span> tags into the text of these nodes at a certain place.
What I am doing is finding the place where I want to insert the <span>,
let''s say index X of the text node''s text, and doing the following:
1) Setting the node''s
2013 Jun 18
2
`require': cannot load such file -- nokogiri (LoadError) in rubyXL
Hi All
Getting the below error when running the source code
My requirement is : I want read / write the excel sheet ( both xls / xlsx )
from Ruby , if you have any other solution also share with me ..
*Source Code :*
*
*
*
bash-3.2$ cat rubyXL.rb
require ''rubyXL''
workbook = RubyXL::Parser.parse("test.xlsx")
workbook = RubyXL::Workbook.new
sheet_Name =
2011 Nov 20
9
scanning word document in ruby
I am new to the ROR and just got stucked into something....
....that is i have to scan a word document through ruby...
Please suggest me how to do......
--
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
2011 Oct 26
6
Add an index to a form
Hello,
I''m having some trouble with forms, my app allows to enter data by
using a multi-step form that has 7 steps.
There are 3 steps that may let the user to add 1 form, for example
there''s a step called "children"
and that children has the following fields:
* name
* age
* gender
but one father may have more than 1 child and I''m adding another form
with
2013 Sep 02
2
Why the string interpolation is not working inside the Nokogiri method `#search` ?
Why the string interpolation is not working inside the Nokogiri method
`#search` ?
require ''nokogiri''
doc = Nokogiri::HTML::Document.parse <<-eotl
<div>
<p>foo</p>
<p>foo</p>
<p>bar</p>
</div>
eotl
doc.class # => Nokogiri::HTML::Document
class Person
attr_accessor :name
end
ram = Person.new
2013 Jun 29
2
how to remove nokogiri warning message
hi
I always get this message today
WARNING: Nokogiri was built against LibXML version 2.8.0, but has
dynamically loaded 2.9.0
I googled by all solution is for mac, I am use linux(openSUSE 12.3)
any one can help?
thanks in advance
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop
2013 Jun 04
3
Nokogiri::XML methods example
Hi,
I am not able to find out a simple example to find out the how the
method works:
> Nokogiri::XML::EntityReference::new
(http://nokogiri.org/Nokogiri/XML/EntityReference.html#method-c-new)
> Nokogiri::XML::Document#canonicalize
(http://nokogiri.org/Nokogiri/XML/Document.html#method-i-canonicalize)
Thanks
--
Posted via http://www.ruby-forum.com/.
--
You received this message
2009 Oct 21
4
XML file using Nokogiri gem
Hello friends,
Can you guys give me some idea about how to Create XML file using
Nokogiri gem.
--
Posted via http://www.ruby-forum.com/.
2011 Nov 27
2
problem scraping using nokogiri - getting wrong characters
Hi all,
I am scraping a table off of another site and inserting it onto my
site. you can see an example on the initial page at: http://mthosts.heroku.com.
I''m referring to the green box with the snowbird weather and snowfall
information.
this box has been scraped off of the snowbird site at:
http://www.snowbird.com/ski_board/snowreport.php
The problem is that on the snowbird site it
2013 Oct 10
12
What's the best way to approach reading and parse large XLSX files?
Hello, I''m developing an app that basically, receives a 10MB or less XLSX
files with +30000 rows or so, and another XLSX file with about 200rows, I
have to read one row of the smallest file, look it up on the largest file
and write data from both files to a new one.
I just did a test reading a few rows from the largest file using ROO
(Spreadsheet doesn''t support XSLX and
2011 Dec 13
3
Validates presence
Hi everyone,
I just need a quick help :)
What is the best way to write some code in :presence option?
I have a Question model and one of the fields is question_type:
- example question
- static question
Each question has alternatives, and each of them has scores
What I want is to validate the presence of :score, but when its only
on the static question.
I dont want to validate the presence
2012 Jul 08
2
How to add a content to an email created with ActionMailer. mail(..,:body) and do |format| either
Hello, I am using ActionMailer and rails 3.0.9 and I want to add a content
to an email that the user has entered but when I write:
mail(...,:body=>"Something") I can''t send the email. I tried mail(....) do
|format|
2011 Nov 06
2
Ruby on Rails 3.1 Installation tutorial for Ubuntu (versions 11.04, 11.10) and Linux Mint (version 11) - download or read online if you need it
After several weeks of messing with Ruby on Rails on Ubuntu I made
this 34 pages PDF installation tutorial which covers:
- Ruby on Rails default installation (Ruby 1.9.2, Rails 3.1, WEbrick
web server, SQLite3 database)
- Ruby on Rails advanced installation (Ruby 1.9.2, Rails 3.1, Apache
web server, MySQL database)
I am total beginner with Ruby on Rails (and a beginner with Ubuntu
Linux) -
2009 Oct 13
9
Nokogiri: to_s WITHOUT html surrounding's tags?
Hi all
n = Nokogiri::HTML("<h1>H1</h1>")
n.to_s
# => <!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\"
\"http://www.w3.org/TR/REC-html40/loose.dtd\">\n<html><body><h1>H1</h1></body></html>
Is there a method that only outputs the stuff I''ve read, and not the
whole valid XHTML stuff?
2009 Nov 11
2
nokogiri: parsing tags
Hello,
I''m trying to use nokogiri gem to parse individual xhtml tags (not the
whole html document) and preform some processing on them.
Heres an example of a string that I want to process:
str = ''<img
src="http://www.canadascapital.gc.ca/data/2/rec_imgs/5005_Pepsi_H1NB.gif"/>
some text<a href="#">test</a> ....''
The following code
2009 Jan 24
4
nokogiri selector help
hiya,
i want the selector that would return a <tr> of a table if any td
contains some text, so i can use it in click_link_within
e.g. When I click the "show" link within the row containing
"user at example.com"
When /^I click the "(.+)" link within the row containing "(.+)"$/ do |
link, text|
selector = ??
click_link_within selector, link
2011 Oct 10
2
Collection_select
Hi,
I''m new using RoR and I have a ... trouble with
f.collection.select
What I have in a table is ... for example
group code
GroupA 07A
GroupA 08A
GroupA 10B
GroupB 06A
GroupB 11B
GroupB 07B
GroupC 10A
GroupC 09A
GroupC 09B
when I use
<%= f.collection_select :grupo, Equipo.find(:all), :id, :name, prompt:
''Choose a Group'' %>
2009 Dec 08
3
invalid pointer in libxml xmlFreeNodeList
Hi,
Not sure if there is a better place to post this. The libxml-ruby mailing
list doesn''t have much activity.
We are getting occasional errors on our production box, that I can''t
duplicate in testing. It''s not even reproducible on the production box
with the same inputs, but I''ve managed to track down (via a lot of print
statements into the Apache
2010 Nov 20
4
How to get rspec running?
I''m quite new to RoR and recently worked through Michael Hartl''s Rail
Tutorial. Now that I had started my first own project and began with the
implementation of a first model and it''s controller. The tests I wanted
to implement just after that. However, I run into some error messages
when I want to start rspec (see below).
The Gemfile is the same as in the Tutorial