search for: each_el

Displaying 3 results from an estimated 3 matches for "each_el".

Did you mean: bachtel
2008 Jun 03
1
Clicking on links within facebook iframes (facebook apps)
...or code:80070005 in <Unknown> Access is denied. HRESULT error code:0x80020009 Exception occurred. from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.4/./watir/frame.rb:52:in `document'' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.4/./watir/locator.rb:31:in `each_element'' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.4/./watir/locator.rb:40:in `locate'' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.4/./watir/container.rb:830:in `locate_tagged_element'' from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.4/./watir/link...
2007 Sep 29
2
REXML - XML query only returning one (last) result
...ting 365 results. Here is the code: include REXML require ''rexml/document'' require ''rexml/xpath'' class MakeFootprintController < ApplicationController def index file = File.new("#{RAILS_ROOT}/xml/footprints.xml") doc = Document.new(file) doc.each_element(''//day'') { |day| render_text day } end end Thanks for the help. --~--~---------~--~----~------------~-------~--~----~ 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...
2008 Jan 18
3
Please help
...@body = REXML::Document.new result --------------------------------------------------------------------------------------------------------- and then in my view I tried --------------------------------------------------------------------------------------------------------- <%@body.root.each_element do |res|%> <%=res[0].text.to_s%> ---> uptil res[4]. <%end%> --------------------------------------------------------------------------------------------------------- The error I get is, undefined method text. and if I remove the text and only write <%=res.to_s%>, it di...