Displaying 20 results from an estimated 11000 matches similar to: "XML question"
2006 Jul 25
6
DRY question (newbie)
Say i want to include the same chunck of text (a menu on a webpage for
example) on each page. Is there a method by which I can save the HTML in
a text file and call it up later? Is there a better way?
I know ruby has "puts" but i can''t use that b/c it does not work with my
webhost (dreamhost.com)
Any suggestions?
--
Posted via http://www.ruby-forum.com/.
2006 Jul 28
2
gem install (Errno::EACCES)
I am finding it impossible to install a gem, and even more impossible to
find help.
Can anyone PLEASE help?
- - - - - - - - -
Mason-Kessingers-Computer:~/Desktop/rails/pygmalion masonkessinger$ gem
install login_generator
Attempting local installation of ''login_generator''
Local gem file not found: login_generator*.gem
Attempting remote installation of
2006 Jul 28
5
DREAMHOST SO SLOW
Does anyone know of any fixes to this?
Any industry-known tips/tricks?
The page loads sometimes take 20-30 seconds.
so bad.
mk
--
Posted via http://www.ruby-forum.com/.
2006 Aug 16
5
too many SESSIONS?
I just notices my app was down, and in the log file were lots of these:
No space left on device -
../config/../tmp/sessions//ruby_sess.898b1cf95e14f8e3
So i figured that i had too many sessions. I went through and deleted
the sessions and then in a few minutes, the site was back up again.
Can anyone explain this?
Did I do the right thing?
Is there a way I can tell my app to accept more
2006 Apr 04
2
newbie-server bound to 3000, cannot disconnect
I know there is a super easy answer to this, i just can''t remember. I
have fired up my server on port 3000... and want to disconnect it. easy.
ERROR MESSAGE:
=> Booting lighttpd (use ''script/server webrick'' to force WEBrick)
=> Rails application started on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server (see config/lighttpd.conf
2006 Jul 18
13
RANDOM
I am pretty much new at this ROR game and had what I think to be a
simple question.
I have a set of Sponsors that I would like to be able to select one at
random and display in the my html. I have already set up the DB,
scaffolded, set index controller and all is working smoothly.
I know that I can display them all by doing
<% for sponsor in @sponsors %>
<%= sponsor.name %>
2006 Jul 27
1
Password Protection
I want a really quick and easy way to password protect a directory in my
rails app.
Does anyone have any really quick/easy ideas or maybe a tutorial that I
could use as example?
Thanks!
Mason Kessinger.
--
Posted via http://www.ruby-forum.com/.
2006 Jul 04
13
NewBie question
Hi,
I m very new to Ruby.
I bought a book "Ruby on Rails" and I think I understand some concepts.
My question is :
Is there a way to not use "Cookies" or "Sessions Variables" to keep some
information about the user.
I ask this question because I would like to prevent some cases where the
user browser won''t accept cookies.
I m from Asp 3.0, and I
2006 May 30
11
Display XML file, with some formatting.
Hi.
Im quite new to this Rails thing, but it seems like a good product so
why not try it out whit a little prototype i need to build.
What i want is to load any given XML file, and display it with some
formatting.
I have some XSD shemes to validate the XML files against, but its not
vital rigth now.
But how should i approach this task?
At first it would proberly be a good idea to load the
2006 Apr 28
8
Rails magic for MySQL -> XML file -> MySQL and back again ??
Greetings!
My little app collects data from the user, persists it in about a dozen tables during the session, writes out / saves an XML file that''s downloaded to the user''s PC when they''re done, then clears the db of all data entered, and deletes the XML file from the server.
Now I need to allow the user to upload the same XML file they created earlier and put it back
2006 Jul 25
1
? Password Protection ?
Say I have some directories I want to password protect.
sub.web-app.com/cms
sub.web-app.com/cms_posts
sub.web-app.com/cms_photos
sub.web-app.com/cms_news
where /cms is a page that allows access(links) to all three other cms
pages.
- - -
Does anyone have any quick advice on how to password protect these
areas?
Any good online tutorials?
Any advice?
--
Posted via
2006 Mar 24
4
Parsing Filemaker 6 XML into something I can use
Hi
One of our customers has a Filemaker database which needs to be
accessed for some data. Using the Web Companion, I can query the
database for an XML version of the data. I need to be able to push
this data into an array of hashes, so I can access it in a more
convenient way. Filemaker is able to provide me with 2 XML formats
(DSO-XML and FMP-XML):
***********
DSO-XML
***********
2006 Aug 04
1
Helper within a Helper? (IMAGE PLACEMENT)
I would like to call an image to be displayed based on its title. It is
easy enough for me to do this like this:
<img src="/images/suggested/<%= suggested.title %>" height="100"
width="100" />
But I want to stick within the ruby code and I''m trying this:
<%= image_tag("/images/suggested/<%= suggested.title %>", size=>
2007 Jul 31
1
RXML: <ruby:put expr="1+2"/>
Hello
railers,
I''ve always been annoyed by the fact that ERB doesn''t respect XML
specs.
As I mostly write XHTML, I''m trying to write a renderer using only
valid
XML files. Here is an example of a file so you get the feeling of
what
it''s going to
do:
<?xml version="1.0" encoding="utf-8"?
>
<html
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 30
1
xml - get values
Hi
I have the following xml string that I have loaded into an REXML object
as shown below.
#xml stuff for saveRoute
require ''rexml/document''
include REXML
Xml = "<test>
<name>sam</name>
<description>this is a test</description>
<description>this is a test2</description>
</test>"
XmlObject = Document.new(Xml)
2006 Feb 01
3
XML on a external website
In my rails application i want to fetch an external xml file
So my website www.test.com needs an xml file from
www.example.com/xml.asp?query=hallo. In my rails application i want to
fetch and handle this file as an xml object.
Can anyone help me?
Thanks.
--
Posted via http://www.ruby-forum.com/.
2004 Aug 20
8
wxruby-swig: where does wxclasses-2.4.2.xml comes from?
Was trying to understand more about the internals of wxruby-swig, where
does the big chunk of XML comes from? I saw something similiar in
Python, is that massaged out of there?
The codes produced by extractxml.rb and wxclasses-2.4.2.xml is quite
different from the original header files. Just for example the WxDialog
class.
OnXXX are non-virtual in WxWidgets, but virtual in wxruby-swig
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?
2005 Aug 22
5
XML "Un-Builder?"
I''ve been unserializing XML in PHP with the XML_Serializer class, and
I''m wondering if anyone knows of such a class for Ruby. Nothing
fancy, just perhaps a simple way of converting arbitrary XML to a
Ruby object. Maybe this has been implemented somewhere already?
Thanks,
Raymond