Displaying 20 results from an estimated 3000 matches similar to: "Upload & Parse CSV"
2006 Dec 27
6
file upload
I ma trying to get this upload working,
http://mongrel.rubyforge.org/docs/upload_progress.html,
....after starting from the command line,
mongrel_rails start -d -p 3001 -S config/mongrel_upload_progress.conf
I get this eror in the browser,
NameError
uninitialized constant UploadProgressRailsController
RAILS_ROOT: /usr/opt/tomcat/workspace/upload/config/..
Application Trace | Framework Trace
2006 Jul 31
10
nothing uploads.....why? (newbie question)
Hi everybody,
I know this is an easy question but I don''t seem to see the solution.
I''m trying to have a user select a file so that my code can parse it and
populate the database with corresponding values. So far it seems like
uploads but nothing shows in my db. Can anybody give me a hand?
thanks
view:
h1>Importing Strings<h1>
2006 Dec 18
2
AGI Help Please
List,
I finally decided to break down & start playing with AGI scripts, but for
the life of me, I can't figure out what I am doing wrong.
Below is a super simple script to run a query in mysql to see how many call
records there are for the extension calling in, then print the total in the
CLI.
This is all I get on the CLI:
-- Executing AGI("SIP/216-0baa",
2006 May 07
4
Paginate() from multiple tables
Hi
I''m wondering if there''s a way I can gather data from multiple tables
from the child table by using the paginate method?
I would have done it using select_by_sql but I need it to paginate.
My table structure is:
Records is a child of Date and Account
Date Account
| |
^ ^
Records
I want to be able to print a table using the Records controller that
will
2006 Jan 15
4
file_field vs. file_field_tag
Hi,
The documentation doesn''t make it clear why both file_field and
file_field_tag are both useful. What is the reason for having two
instead of just one of these?
Thanks,
Peter
2012 Mar 27
4
Upload
hello everyone,
i have written an upload controller which handles files in a multipart-
form. it scans through the bytes to check if it''s an acceptable file.
my problem is to get the progress of the upload of a single file. i
loop through my params to move every file to the server and it''s
working properly.
is there a method to check whether a file has been completely
2010 Sep 02
7
unable to upload larger files
hii,
i am trying to upload some files to filesystem using rails application
when i use small size file everything is perfect but i when goes for
larger files i got error
this is my code
#this model file
class DataFile < ActiveRecord::Base
def self.save(upload)
name = upload[''datafile''].original_filename
directory = "//192.168.147.17/Smruti/streams"
#
2007 Feb 09
7
Upload image without rmagic
I need a way to upload an image and display it without using any of
the plugins that use rmagic. I have used the plugins (file_column,
fleximage) which both use rmagic and gave me problems (never got
fleximage to work)
Thanks in advance - K
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2006 Aug 02
3
Upload forms--where is the file object?
Hi All,
I''ve been trying to create an upload form page that will take an
uploaded file, and save it to a directory on the server. I''ve tried
following a couple of posts on this list, and the HowTo from here:
http://wiki.rubyonrails.org/rails/pages/HowtoUploadFiles
Here is the code in my view:
<%= start_form_tag ( {:action => "upload"}, { :mulipart => true }
2010 Mar 29
4
error in uploading file(help me urgnt)
when i tried to crate an upload file application in rails i am getting
error like this
Template is missing
Missing template app\views\upload\uploadfile.html.erb in view path
app/views
this is ma model
class DataFile < ActiveRecord::Base
def self.save(upload)
name = upload[''datafile''].original_filename
directory = "public/data"
# create the
2007 Jul 08
1
file_field_tag and rjs
Hello
Is it possible to add and remove file_field_tags on the fly on a form
using only rails code and rjs?
If so can someone provide a solution.
--
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
2010 Oct 20
2
How do i use button_to_function
Hii all ,
I am trying to create a button that, when clicked on, calls a
method in a controller . I am thinking that button_to_function is good
to use for that i made htnl viwe like
<h1>File Upload</h1>
<p><label for="upload_file">Select File</label> :
<%= file_field ''upload'', ''datafile'' %></p>
2012 Apr 27
5
How to cap table with active record
We want to use SQL/active record for logging but limit the table size
so that older messages disappear off of the table Some process has to
run periodically to do that.
Suppose I want to keep my table size to not much bigger than
50,000,000 rows or so. What is the easiest, most efficient way to
delete any extra rows that there may be ? This is an SQL/active record
problem I have not encountered
2006 Feb 21
2
Production ecommerce sites?
Hi All
First post and its a question of Rails abilities. I was wondering if their
are any examples of a Rails application driving an ecommerce shop site.
Selling a catalogue of products? We''re looking at starting our first major
Rails project at work and wanted to gather some examples to sell to the MD
as PHP is becoming a drag and there''s so much more possibility in Rails.
2006 Jan 26
3
discard_year => true
Hi All
I''m attempting to make a simple time select field so I thought I just
needed a datetime_select with the option :discard_year => true.
However, every ''discard'' option except discard_year seems to work. So
I''m left with a year, hour and minute to select.
Could anyone please point me in the right direction?
Much appreciated.
Doug
--
Posted via
2006 Aug 01
3
Upload file to file system and sql insert date errors
I''m trying to use one form to upload a file to the file system
and insert a title and description field into the database.
I have no problem uploading files to the file system
using the code from
http://wiki.rubyonrails.com/rails/pages/HowtoUploadFiles
There are more fields on the form than need to be inserted into
the database, name and file.
I need to pull out these extra fields
2004 Jul 22
1
vampire failed for undefiled value sambaSID
Greetings!
Vampaire process is running, but it failed create accounts for everyone.
The error message is
"Can't call method "get_value" on an undefined
value at /var/lib/samba/sbin/smbldap-useradd.pl line 152."
And I looked at the mentioned file and the line is
$userGroupSID = $group_entry->get_value('sambaSID');
I am
2006 Feb 08
1
Adding children via small subform
I''ve read AWDR and especially the part concerning adding child
line_items to an order. Unfortunately I want to do my process in
reverse and in doing what I thought would work I get a null object error
when trying to append the children to the parent.
This is a _major_ stumbling block in my Rails use as almost every one of
my projects has needed this so its a pretty vital problem I need
2007 Dec 08
3
Uploading photos using facebook & attachment_fu
Hi All,
I''m trying to use a form to upload a photo that I will save using
attachment_fu. I''m very new to Facebookr so I apologize if this is covered
somewhere, but I''m kind of stumped.
Here''s what I''m doing now:
<% facebook_form_for(:my_object, :url => { :action => ''upload_photo'', :id =>
params[:id] }, :html => {
2006 Feb 23
5
layouts
I created a controller called reports, for which I didn''t have any model
or tables.
I wanted to use a menu/layout structure similar to all my other
models/controllers and added a layout named reports which then gives me
the menu/layout structure but is also now part of all my reports.
That isn''t gonna work so I renamed reports.rhtml to reports_forms.rhtml
(still inside my