Displaying 20 results from an estimated 5000 matches similar to: "help needed in xml feed"
2006 Jul 26
1
Plz answer my query in date_select
hello gentlemen
I want to set my (default)own date in date_select, how to do this, plz
explain with example
advance thx
have a nice day
regards
narayana
--
Posted via http://www.ruby-forum.com/.
2006 Aug 02
2
multi dimensional array
how to implement multi dimensional array in ruby
in ruby multi dimension array look like tree structure
plz help me & explain with code
have a pleasant day
thx
narayana
--
Posted via http://www.ruby-forum.com/.
2006 Aug 05
2
plz do favour in active record
hello
I want to do like the below code
name=[''net'',''gross'',''amount'']
avail= Avail.find(1)
return avail.name[0]
but it gets error
I want to give " avail.name[0] " like this, rather than avail.net
directly,
can u guys plz help me, how to do this plz explain with code
advance thx
have a pleasant day
narayana
--
2006 Aug 04
1
How do i create & insert data into xml file in ruby
hello
How do i create new xml file & insert data into that new xml file in
ror
plz explain with example code.(say i have to insert all the values of a
table into xml file )
advance thx
Have a pleasant day
narayana
--
Posted via http://www.ruby-forum.com/.
2006 Aug 07
1
how to create new folder
hello
how to create new folder /directory in ruby. how to check whether the
directory is exists. plz explain with example code
advance thx
narayana
--
Posted via http://www.ruby-forum.com/.
2006 Jul 03
2
XML Builder - xml header...
for some reason, i am getting an extra:
<?xml version = "1.0"?>
in my xml file..
i am using a file called:
lastLogins.rxml
and the code looks like:
xml = Builder::XmlMarkup.new
xml.instruct! :xml, :version=>"1.0", :encoding => ''ISO-8859-1''
xml.loginData do
@lastLogins.each do |login|
xml.entry do
xml.user(login.user)
2013 Jan 16
1
End of file reached, while copying large files from modules to client
Hi,
I am trying to copy a file from puppet server''s module to the Windows
machine client
The following snippet is from init.pp of a module:
file {''copyingDB'':
ensure => file,
path => ''C:/dump/dump1.zip'',
require => File[''dump''],
mode => 0777,
2006 Jul 24
0
set day in date_select
hello gentlemen
how to set default day and default month in date_select. plz explain
with examples
advance thx
have a nice day
narayana
--
Posted via http://www.ruby-forum.com/.
2007 Nov 21
4
Builder::XmlMarkup adds <inspect/> on printing and <clone/> on saving
Hello,
I am new in this group. Please give me a short hint, in case this is
the wrong place for my posting.
I want to create an XML file and store it in "filetransfer". The XML
part of the file (the body) sould go to "filetransfer.data". Despite
the last line, everything is fine with the code below.
With "filetransfer.save" two entries "<clone/>"
2006 Apr 27
3
XML output
Hi,
Sorry abt the half finished post that I sent out earlier.
The idea is to generate an output xml response as such:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<response status=''NOT_AVAILABLE''>
<message>Some text</message>
<from>Me</from>
</response>
I make a request like such
2006 May 31
3
Camping and Builder and XML
Hi,
I have built a simple Camping application which indexes an ODBC
datasource using Ferret on startup, then accepts search strings and
renders the resulting hit list in HTML, and it works quite nicely.
The next step was to alternately render the list in XML for consumption
by another application. In Rails, I would simply use Builder in the view
to get the job done, and so I did the same in
2007 Jul 19
0
xml builder cache (with a slight problem on initial load)
Let me give you the background. I am using rxml for a lot of my views
for a rails project. I also noticed that there is a lot of the XML
being dynamically generated on data that doesn''t change that often. I
worked on trying to cache the xml fragment that I needed but came to
the quick realization that cache only handle ERB/RHTML files. Needless
to say, I have spent some time creating an
2006 Aug 05
1
XML from Builder without the to_s element
Hi All,
I''m trying to return XML from a Rails view of an object I built up
using Builder::XmlMarkup and I find an annoying side effect is that I
get an extra <to_xml/> or <to_s/> element back which makes REXML
hiccup thinking I''m adding a recond root element when I try to parse
the return.
How can I return the XML without this last element?
Thanks,
Vince
2009 Aug 04
1
Output XML to File
I am trying to read some information based on a user id, then search the
database for the needed info and build an XML file. Everything seems to
be working fine; I read the info, I create the xml and even spit "stuff"
out to file. The issue is that the "stuff" I am writing to a file is a
xml/html cross cluster #@%$ of stuff. Here is some code:
if !params[:id].blank?
2006 Aug 05
0
plz do favour in xml builder
hello
name=[''year'',''day'']
i want to use the below code
x.year "2006" in xml
as x.name[0] "2006" how to do this ?
can u plz explain with example
advance thx
have a nice day
narayana
--
Posted via http://www.ruby-forum.com/.
2006 Jan 30
5
a RJS problem/patch
Hi,
add_rjs_to_action_view.rb of javascript_generator_templates
doesn''t work with setting Content-Type in a controller.
(e.g.) http://wiki.rubyonrails.org/rails/pages/HowtoSetDefaultEncoding
class ApplicationController < ActionController::Base
before_filter :set_charset
def set_charset
@headers["Content-Type"] = "text/html; charset=utf-8"
end
end
I
2006 Jul 26
0
embedded DTD using Builder
Hello -
I would like to include an embedded DTD in generated XML output. I am
attempting to use the Builder::XmlMarkup class to do this. A simplified
example follows:
xml = Builder::XmlMarkup.new(:indent => 2)
xml.declare! :DOCTYPE,:logs do
xml.declare! :ELEMENT,:logs,''(log*)''
end
The problem that I am encountering is the that second declare! call
2010 May 17
0
ActiveResource 3 on MRI 191: NameError (uninitialized constant Builder::XmlBase::Symbol)
We''ve run into this before and, in this particular project, I''m
positive we had a hack somewhere to get AR to work but it seems to
have gone missing and I''m not finding any hints in git history or
Google. Any call to an AR.create will trigger it. Seems like a
strategically placed require or include did the trick but I''m probably
misremembering.
The offending
2009 Jan 09
2
Confused about to_xml() in ActiveRecord::Base subclass
Since all my efforts to control how to_xml() is formatting dates has
failed, I''m now considering writing my own to_xml(). However, from
the limited examples I''ve found, I just don''t understand how to
actually reference the columns for the records in my record set.
Here''s a simplified view of my ActiveRecord object:
class Errors < ActiveRecord::Base
2005 May 01
5
Example using Builder::XmlMarkup and .rxml files?
Greetings,
I''m a newby to both "R"s in RoR. I would like to use Builder::XmlMarkup
to generate my pages. If there is a working downloadable example
somewhere, that would probably be enough. Otherwise, here''s what
I want to do:
With the following controller:
class AccountsController < ApplicationController
layout ''accounts''
model :account