search for: forthecode

Displaying 4 results from an estimated 4 matches for "forthecode".

2006 Aug 24
0
Re: File Attachment
...ter choosing a file by browsing the local hard drive. I realize that when submitted, the file goes to my windows/temp directory as a windows user. I haven''t done anything similar before. It''s saving it in the form CGIxxxx.x, where the x''s are numbers, much like in the forthecode walkthrough which I am following. There are problems with moving the file out of the temp directory to an appropriate directory in my web application. When using the FileUtils.mv function I get a permission denied rails error in my browser. That file is being used by something, so I copied the...
2006 Jul 26
5
code for uploading files to the filesystem instead of db
Does anyone have any standard code for uploading files to the filesystem? I''ve got code already for uploading images to the database but I''d prefer to store the files on the filesystem. In particular I need to know how to (a) ensure a file has been selected in the file_field (b) how to extract the filename from the file_field (c) how to actually move the file from client to
2006 Aug 03
3
HELP: multiple select list in ror
Hi Search doesn''t seem to be working so my apologies if this has come up before. I have some simple code in a view that generates a multiple select: <select name="menu_select" size="5" multiple="multiple"> <% for m in Menu.find(:all) %> <!-- this needs to be abstracted in ror fashion --> <option value="<%= m.id %>"
2006 Aug 18
3
Lighttpd Conf Help - Multiple Domains Multiple Apps
Hi Guys, I hope someone can help me out. I am trying to configure two applications to run on lighttpd and each app will have its own domain. My machine is running on Fedora. When I run my lighttpd with the following conf file, I get no error but when I check out my app, it dishes out a 404 error- the 404 being served isn''t the 404 inside the railsapp/public folder. Do hope someone