search for: uploadcontrol

Displaying 17 results from an estimated 17 matches for "uploadcontrol".

2010 Oct 20
2
How do i use button_to_function
...9;, ''datafile'' %></p> <%= button_to_function "UploadFile","alert(''Hello world!'')"%> <%=button_to_function ''upload'', remote_function({:action =>''uploadFile''}, :controller => ''UploadController'') %> but when i clicked on upload button nothing happen could anyone suggest me how to this -- 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 e...
2010 Mar 29
4
error in uploading file(help me urgnt)
...:multipart => true) %> <p><label for="upload_file">Select File</label> : <%= file_field ''upload'', ''datafile'' %></p> <%= submit_tag "Upload" %> <%= end_form_tag %> This is ma controller class UploadController < ApplicationController def index puts ''hiiiiiiiiiii'' render :file => ''app\views\upload\uploadfile.html.erb'' puts ''hiiiiiiiiiii2'' end def uploadFile puts ''hiiiiiiiiiii3'' post = DataFile.save(params[:uplo...
2006 Aug 02
3
using migration--newbie
Hi all, (I''m new with RoR) I''m using a migratio to import data into a database but nothing is being happens. I''m importing strings from a parsed file. this is what I have: controller: class UploadController < ApplicationController def create table = { } params[:localized_string][:data].each_line do |line| if line =~ /^\s* " (.*?) " \s* = \s* " (.*?) "/x table[$1] = $2 end end table.each do |key, val| LocalizedStr...
2006 Aug 01
3
Upload file to file system and sql insert date errors
...ir("./traces/#{upload[''name'']}") end File.open("./traces/#{upload[''name'']}/#{upload[''file''].original_filename}", "wb") { |f| f.write(upload[''file''].read) } end end # contorller class UploadController < ApplicationController def create @upload = Upload.new(@params["upload"]) upload = Upload.insert(@params["upload"]) redirect_to :action => "show" end end # view <%= start_form_tag({:action => ''create''}, :multipart =&g...
2008 Nov 03
4
Really confusing issue involving ActiveRecord and a NoMethodError
...ned, even though they absolutely are defined. I can interact with the Playlist class just fine, and create new entries in the database, but for some reason, when I try and create a new instance of the Artist class, or the Song class I get the following error: undefined method `create'' for UploadController::Artist:Class I decided to check this out using the Console, and I am able to create a new instance of the Artist class, and populate the database in the console, so the issue only resides in my web application. Could I be missing some small piece of trivial information? I was under the impres...
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
2008 Oct 10
17
authenticity_token sent, still InvalidAuthenticityToken
Hi! To send the authenticity token from flex back to the server, I followed this: http://blog.dt.org/index.php/2008/06/rails-2-flex-3-and-form-authenticity-tokens/ I have two controllers in my rails app. The method described in the link above works with the actions in one controller, but does not work with the other. The controller which does not work has just one action which performs a file
2006 Jun 10
0
Dynamic file paths in FileColumn
...ultipart => true })%> Publication: <%= collection_select(:xml, :publication_id, @publications, :id, :name)%> XML File: <%= file_column_field "xml", "path" %> <%= submit_tag(value = "Create new article") %> <%= end_form_tag %> class UploadController < ApplicationController @xml = Xml.new(@params[:xml]) @xml.save end class Xml < ActiveRecord::Base file_column :path, {:pub => :publication_id} end #small change to FileColumn (appologies to Mr. Kanthak) module FileColumn # :nodoc: ... def self.init_options(defaults, att...
2006 Feb 27
2
Upload & Parse CSV
Hi All I was hoping you could help me. I need the ability to upload a large quantity of data via CSV - via an upload form. The CSV file then needs parsing and the data entering into the relevant module. Does anyone have experience of this or perhaps knows of a posting, generator, existing code or any help at all? I''ve been looking but not come across anything so far. I can do this
2006 Jan 06
4
Upload Progress Bar Problems
I''m writing an application where the user will be uploading many images and user feedback is essential. I''ve been trying to get the upload progress bar plug-in to work, but thus far have not had any success. I''ve downloaded Sean Treadway''s application code from his site http://sean.treadway.info/demo/upload/ and I followed the steps in his Upload
2006 Jul 24
2
Newbie error message!
hello you all, I''m new with Ruby on Rails. I''m developing an application. I got the follwoign erro, can anybody give a hand? ArgumentError in AdminController#import_strings wrong number of arguments (0 for 1) RAILS_ROOT: ./script/../config/.. Request Parameters: {"commit"=>"Import",
2007 Dec 17
3
not able to view the images after the upload
...using file_column to the server but i''m not able to view the images.i''m not able to see the images but then i''m able to view the image name when i click on my show action. can any one please help?? THIS IS MY LOG as to what happens when i do the image upload. Processing UploadController#create (for 127.0.0.1 at 2007-12-17 11:39:44) [POST] Session ID: f385bac4321f9e08c5b50f5ac2d345a6 Parameters: {"commit"=>"Create", "iframe_remote"=>"true", "action"=>"create", "controller"=>"upload",...
2007 Oct 23
2
Aborted (core dumped)
Hey, When I''m trying to upload images I get this following error and my ruby server shuts down: Processing UploadController#new (for 127.0.0.1 at 2007-10-23 14:50:47) [GET] Session ID: 3c39b2b1da22bc63513f83f8ced2e93a Parameters: {"action"=>"new", "controller"=>"upload"} User Columns (0.002187) SHOW FIELDS FROM users User Load (0.000983) SELECT * FROM users WH...
2010 Sep 02
7
unable to upload larger files
....original_filename directory = "//192.168.147.17/Smruti/streams" # create the file path path = File.join(directory, name) # write the file File.open(path, "wb") { |f| f.write(upload[''datafile''].read) } end end #this is my controller class UploadController < ApplicationController def index render :file => ''app\views\upload\uploadfile.rhtml'' end def uploadFile post = DataFile.save(params[:upload]) render :text => "File has been uploaded successfully" end end -- Posted via http://www.ruby-foru...
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>
2011 Jun 01
7
desperate, errors with file upload
hello, i implementing a file upload using paperclip plugin. i getting the following error [1] when uploading a file. I''m using the gems rails v2.3.8 and paperclip v2.1.6. the parameter hash looks like [2], the model like [3]. Interesting is that i get two different errors, on the localhost with webrick it says: Status: 500 Internal Server Error no marshal_dump is defined for class
2009 Sep 14
9
ActiveRecord::StatementInvalid (invalid date) with Oracle
Hello all. I am a novice Ruby on Rails programmer, starting my first project using a legacy Oracle 10 database. Using ''reverse_scaffold'' I have created the models/controllers/views for my existing Oracle tables. All seems to work well, using /model/index, /model/show for most of my tables, *except* when one of the tables contains a Oracle ''date'' column, for