Displaying 20 results from an estimated 5000 matches similar to: "How do i create & insert data into xml file in ruby"
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 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 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 17
2
how to manipulate the OUTLOOK EXPRESS in Ruby
hello
how to manipulate the microsoftOUTLOOK EXPRESS in Ruby
please explain with code
thanx
--
Posted via http://www.ruby-forum.com/.
2012 Jun 01
4
Is there a ftp crawler in ruby on rails?
Hi,
I''m a newbie to ROR. I wanted to write some code which can help me to
list and then index all the paths on a remote server. Is there a ftp
server crawler in ruby?
Thanks,
Narayana
--
Posted via http://www.ruby-forum.com/.
--
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
2006 Jul 17
4
how to invoke model methods in controller & vice versa
hello
how to invoke model methods in controller & vice versa
please explain with examples
advance thanx
--
Posted via http://www.ruby-forum.com/.
2006 Jul 22
2
selected values in combo box
how to set default value in combo box or whether there is another way
plz explain with example code
advance thx
have a nice day
--
Posted via http://www.ruby-forum.com/.
2006 Sep 29
7
help needed in UNIT Testing
hi guys,
I needed help in Unit test. i just try to save new data intomy test
database.
but save method does not works for me. the result shows here
def test_new_avail
avail = Avail.new(:vendor_id => 1,
:last_mod_by => ''Murali'',
:updated_at => ''2006-08-17 13:14:59)
assert avail.valid?
assert avail.save
end
2006 Aug 15
5
XML question
Is there a way you can use RoR to create an .xml file?
Say I had a DB full of info that I wanted to format and have export as
"lorem.xml" inside of a specific directory in my web server?
Then, each time I updated the DB it would re-export the file (delete the
old, save the new?)
--
Posted via http://www.ruby-forum.com/.
2006 Apr 17
7
Serve static XML files how?
Hi,
a Javascript in one of my Rails templates needs to load a static XML
file. I tried several places to put the actual XML file, and I also
tried to make the file a rails template (tried both .rhtml and .rxml)
and access it via a controller action. None of these ways worked. Does
the lighttpd server know how to serve XML files, or do I need to
configure it first? Or, is there a good workaround?
2006 Mar 04
13
Using helpers from controllers ?
There is a solution to use helpers from controllers ?
I have an error :
|undefined method `content_tag''|
class ApplicationController < ActionController::Base
def test
return content_tag("a","test")
end
end
2005 Dec 27
8
XML Not Working in Explorer 6
I''m playing with XML using Builder but seem to be having some trouble in
Explorer 6. My sample code:
xml = Builder::XmlMarkup.new
xml.instruct!
xml.instruct! ''xml-stylesheet'', :href=>''/stylesheets/style-xml.css'',
:type=>''text/css''
xml.declare! ''DOCTYPE'', :html,
:PUBLIC,
"-//W3C//DTD XHTML 1.0
2006 Aug 05
0
help needed in xml feed
hello gentlemen
if i use the below code in model( I want this code to be in model only
not in views)
xml = Builder::XmlMarkup.new( :target => $stdout, :indent => 2 )
xml.instruct! :xml, :version => "1.1", :encoding => "UTF-8"
xml.avails {
xml.dump("hai")
xml.dump1("hello")
}
how can i retrieve this code & feed this code into
2006 May 08
8
RSS Feed / xml.link problem?
I''m having an odd problem. I''m trying to create an RSS feed (working off the
Recipe), but "xml.link" generates error about "Can''t convert Hash to
String". From the error trace, it *looks* like it''s calling the a fileutil
''link'' method (as in, filesystem symbolic link) - even xml.tag! generates
this error.
Er, how do I make
2005 Nov 03
1
Builder / rxml views: hyphens in XML element names
I''m having a strange problem with an rxml view - it won''t let me put hyphens
in the names of XML elements.
The original problem line was:
xml.VISA-SSL do
But in any other place, if I insert a hyphen into the name of any arbitrary
element, I get the following kind of error:
undefined method `theTextAfterTheHyphen'' for #<#<Class:0xb7617180>:0xb7616f28>
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 Jan 12
3
ActionMailer bug?
Hi ,
I have actionamailer working properly with a template and a model for
creating the mail object etc. The whole thing works correctly if I use
Webrick.but when I use it on Apache,i get the error which says "template
missing".rails is unable to find the template for the mailer
object.Hasanyone noticed this?
Vivek
PS:I am still not using the 1.0 version
-------------- next part
2007 Nov 01
1
Help me in Cochran armitage trend test Coding
Dear sir,
I am Shibu John from Thrombosis Research Institute India. It is a
multidisciplinary organisation concerned with the interrelated problems of
thrombosis and atherosclerosis.
I was searching for Cochran armitage trend test program in R. Then I had
seen your R coding for C-A trend test. I tried that in the R software.
But I can?t run the program due the [Error: could not find function
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/.