Displaying 17 results from an estimated 17 matches for "miggyx".
2006 Mar 21
11
Stuck on ActiveRecord
Hi,
I''m having great fun developing with Rails but I''ve come to a problem
that I can''t quite figure out.
I have an Order object that "has_many" order_lines. This works perfectly
and I can see all the lines.
The OrderLine object has an order_id field as well as product_id and
amount.
Now ideally I would want to do :
order.orderline[0].product.name
for
2006 Mar 29
13
Rails on Mongrel
Hi,
After following advice from you good folks, I gave mongrel a try in a
cluster design based on the example on the Mongrel website - and it
worked right out of the box which is great - and it''s very fast :)
I have got a bit stuck though. I have two MS Word files in
/public/files/. I can pull back these files no problem but it isn''t
sending a mimetype.
I think I have two
2006 Mar 28
6
Deploying rails...
Hi,
I thought I''d give lighttpd and FastCGI a go but the latest version I''ve
found for fastcgi is 2.4.0 which was released in January 2003. Is this
the right version?
Can anyone recommend the versions I should use for FastCGI et al and
where to find them? I''m not sure I''ve really found what I''m looking
for...
--
Posted via
2006 Jun 25
2
Working out sales tax...
Hi,
Having googled extensively about storing money in Rails, it seems to be
accepted that the best way is to store the prices etc in the smallest
part of the currency so that you can use an integer i.e ?20 would be
stored as 2000 pence.
This is fine and I''ve made a nice pretty wrapper that outputs the price
in the standard form for invoicing and what not - but here I''ve
2006 Apr 12
1
URL Paths
Hi,
I''m looking to rewrite an existing app in Ruby but it makes extensive
use of URL paths. For example a site would redirect to :
/Portal/foo/
and from this I could tell that ''foo'' was the site that did the
redirect. Of course when I try this with Ruby I get "method not found"
which is hardly surprising.
I''ve had a quick look round google but
2006 Apr 17
1
SOAP and exceptions
Hi,
I''ve been doing more searching, and I''m kinda stuck on how to send back
error messages to a SOAP / XML-RPC client if say for example the
username and password they supplied were incorrect.
Can anyone point me in the right direction?
Cheers,
Pete
--
Posted via http://www.ruby-forum.com/.
2006 Mar 21
1
Form Validation
Hi,
I''ve got an interesting one here :)
I have a form with three fields :
serial_number
initial
surname
now, if serial_number is entered, it must be between 1 and 64000. If
it''s filled in, the other two fields must be blank. If serial_number is
left blank then the other two boxes must be filled.
Any suggestions?
--
Posted via http://www.ruby-forum.com/.
2006 Mar 23
3
Returning CSV data to the client
Hi,
One of my apps has to export data for the backend system to process it.
What''s the best way to create a CSV file in Rails and then return it as
a file to the client? i.e when they go to the link /csv/get_data it
would return a csv file.
I''ve been messing with the CSV library and I can get it to write out to
a file, but not sure how to best use this in a web app.
Hope
2006 Apr 17
5
XML-RPC Webservice API
Hi,
After following the excellent tutorials in the Agile Web Development
with Rails book, I was able to get my webservice working pretty much
perfectly :)
I can access it via SOAP and XML-RPC and look at service.wsdl to find
the API. What I can''t do however is get the API for the XML-RPC call. It
fails with :
Internal protocol error: NilClass is not a valid input stream. It must
2006 Apr 27
0
Odd issues loading classes
Hi,
I''ve just started using web services which are working brilliantly apart
from one odd little problem.
For some reason the controller runs perfectly for the first request -
and then fails for the second request citing missing definitions etc.
Basically it''s reading in the class definitions initially - but for some
reason doesn''t read them in for the second time.
2006 Mar 22
2
What am I doing wrong with this? :)
Hi,
I''m having trouble with a piece of code based on an example someone
kindly posted here:
errors.add(''surname'', "must be blank when the serial number is known")
if !surname.nil?|| !surname==""
Now, even if surname is empty, it still flags the error message. I
imagine I''m doing something rather obviously wrong but I''m not
2006 Mar 28
1
Using request.env[''REMOTE_HOST'']
Hi,
I''m currently using request.env[''REMOTE_HOST''] to pull back the remote
users IP address. This worked fine in development (and production) under
Webrick but when I tried to use it with mongrel, it kicked back an
error.
Is there a more appropriate way to find out the remote users IP address?
Thanks in advance!
--
Posted via http://www.ruby-forum.com/.
2006 Mar 29
1
Rails and proxies
Hi,
I''ve got mongrel working nicely behind lighty which is working great.
Unfortunately we use remote IP addresses to work out which store is
connecting to the system.
I just tried connecting to the application via proxy server, and rails
sees my IP address now as being 127.0.0.1. Obviously this stops me
seeing the correct IP address for the store.
Is there any way around this?
2006 Aug 04
0
Rails and PGP
Hi,
One of the applications that my Rails app has to talk to requires
talking via email ( thank god for Mailer ). The problem is that the
emails need to be pgp signed...
I was wondering if anyone had ever used pgp signatures within a Rails
app?
Thanks in advance!
--
Posted via http://www.ruby-forum.com/.
2006 Apr 06
3
RoR and Threads...
Hi,
Anyone who has seen my posts so far will know straight away that I''m new
to Ruby. The kind help and advice I''ve received here has been invaluable
to me and is greatly appreciated! I wish all programming communities
were this friendly! :)
Anyway, on to the question...
I started off on PHP which didn''t require any real multi-threading
techniques - at least for
2006 May 26
5
scriptaculous - auto complete textbox with a drop down
Hi,
I''m using scriptaculous to provide an auto complete textbox - and it
works perfectly - but I was wondering if there was anyway to let users
navigate the choices using the keyboard i.e the curor keys as opposed to
having to use the mouse? Apart from that it''s perfect! :)
Cheers,
Pete
--
Posted via http://www.ruby-forum.com/.
2006 Mar 24
19
Storing images in Ruby
Hi,
I''d like to allow users to upload images and store those images in a
Postgres database. I''ve looked through the example in "aguile
development with rails" which suggests using the MySQL blob field.
When I wrote a similar app in Java, we Base64 encoded the file and then
stored it as a text field. Is this easy to do in RoR too? Any advice you
can give me would