search for: uploadfil

Displaying 18 results from an estimated 18 matches for "uploadfil".

Did you mean: uploadfile
2009 Nov 17
6
after changed the tag i got the same eror
SyntaxError in Upload#index Showing *app/views/upload/uploadfile.rhtml* where line *#10* raised: compile error app/views/upload/uploadfile.rhtml:10: syntax error Extracted source (around line *#10*): 7: <% end %> Trace of template inclusion: app/views/upload/uploadfile.rhtml RAILS_ROOT: /home/malathi/www/upload Application Trace <http://localhost...
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 file path path = File.join(directory, name) # wri...
2013 Sep 30
0
TypeError: no implicit conversion of Symbol into Hash when submitting form to upload files
I''m currently new to Rails and Ruby and I''m trying to learn from my mistakes, this time I''m trying to upload 2 files from a form for later processing, however, after I hit the "Submit" button. I keep getting this error: TypeError in UploadFilesController#create app/controllers/upload_files_controller.rb:28:in `new'' app/controllers/upload_files_controller.rb:28:in `create'' Request Parameters: {"utf8"=>"✓", "authenticity_token"=>"2JJGtRXjWCZlPNhQdx6wOW4xvTseiRaXNylnUYvA5v4=&q...
2010 Oct 20
2
How do i use button_to_function
...tton_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> <%= 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...
2008 Dec 08
1
How to upload file by ajax
Hey'' How to upload file with ajax in ROR? My code not working :( View file : <% form_remote_tag(:url => { :controller => ''Upload'', :action => ''uploadFile''}, :update => "result", :position => :bottom :html => {:multipart => true} ) do %> <p><label for="upload_file">Choose file :</label> : <%= file_field ''upload'', ''datafi...
2007 Oct 24
0
STI vs CTI vs something else?...
Hey gang, I have these classes: class Image < UploadFile validates_file_format_of :filename, :in => ["gif", "png", "jpg"] end class UploadFile < PropertyItem file_column :filename validates_presence_of :filename end class PropertyItem < ActiveRecord::Base validates_presence_of :name end What I''m...
2008 Jul 09
1
render file in index
Hi I am trying to render file in controller like this : def index render :flie => ''app\views\upload\uploadfile.html.erb'' end It still complains that template is missing. Template is missing Missing template upload/index.html.erb in view path /home/rails/ directory/app/views Do i have to use funtion render :template or how i can change that default index.html.erb --~--~---------~--~----~--------...
2018 Sep 06
3
How to add Loongson ISA for Mips target?
...loongson3a cpu in frontend https://github.com/xiangzhai/clang/commits?author=xiangzhai * initial Loongson3A subtarget skeleton. Are there some documents or papers? Please teach me, thanks a lot! 1. https://github.com/loongson-community/gcc 2. Chinese Simplified version http://www.loongson.cn/uploadfile/cpu/3A3000/Loongson3A3000_3B3000user2.pdf -- Regards, Leslie Zhai
2010 Sep 02
7
unable to upload larger files
...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-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on...
2018 Sep 06
2
How to add Loongson ISA for Mips target?
...author=xiangzhai >> >> * initial Loongson3A subtarget skeleton. >> >> Are there some documents or papers? Please teach me, thanks a lot! >> >> 1. https://github.com/loongson-community/gcc >> 2. Chinese Simplified version >> http://www.loongson.cn/uploadfile/cpu/3A3000/Loongson3A3000_3B3000user2.pdf > > -- > Simon Atanasyan > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org> > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-de...
2013 Oct 10
12
What's the best way to approach reading and parse large XLSX files?
...possible I''m doing it wrong, help is welcome) *What i was trying to do here, was to process the files and create the new XLS file after both of the XLSX files were uploaded:* require ''roo'' require ''spreadsheet'' require ''creek'' class UploadFiles < ActiveRecord::Base after_commit :process_files attr_accessible :inventory, :material_list has_one :inventory has_one :material_list has_attached_file :inventory, :url=>"/:current_user/inventory", :path=>":rails_root/tmp/users/uploaded_files/inventory/inventory...
2009 Jan 15
0
Fwd: Running a simple .Net 3.0 application.
...ram called InstallRite on the users-list, and using this program, I was able to get a a simple .Net 3.0 app running in wine. I thought just share my experience here, in case anyone finds it useful. The application i got running is very simple: AnimatedApplication from http://www.longhorncorner.com/UploadFile/rahul4_saxena/AnAnimatedApplication07112007042303AM/AnAnimatedApplication.aspx (You just need register, then you can download the file) This way I got it running: 1. Fire up Windows Xp (a snapshot from a clean install) in my VirtualBox 2. Install Installrite from http://www.epsilonsquared.com/...
2009 Mar 17
2
Upload image to MySQL
Need simple sample, how to upload image in to MySQL database (in BLOB) Rails 2.2.2 -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To
2020 Mar 27
0
AX-1600P FXO port configuration
...=> s,1,Answer(.5)    same => n,Dial(PJSIP/6000) --- EOF --- I think I misunderstood something and I'm doing all totally worng because there aren't inbound or outbound calls. Someone could help me to configure correctly the FXO port? Thanks in advandced. 1 - http://www.atcom.cn/uploadfile/2014/1219/cards/ax1600p/AX1600P&AXE1600P%20Datasheet.pdf -- El software de antivirus Avast ha analizado este correo electrónico en busca de virus. https://www.avast.com/antivirus
2010 Dec 15
3
Spreadsheet gem character encoding
Hi everybody I''am working on a Rails app (using utf-8) in which I use the Spreadsheet gem to generate Excel files (.xls in my case). I ran into some issues when trying to write foreign characters to the generated Excel-File. The solution I found so far is to use Iconv like this: Iconv.conv(''ISO-8859-9'', ''utf-8'', some_string) This works fine with for
2006 Feb 25
31
Ajax Scaffold Generator for Rails Released
I just released a whole new version of the Ajax Scaffold Generator (for Ruby on Rails). The generator creates a scaffold page like the typical rails one, except adding, editing and deleting are all done inline. The generated scaffold is valid XHTML strict and fully styled right out of the box. Check out the demo: http://ajaxscaffold.height1percent.com/ And the how-to:
2010 Jul 08
2
partition offset/alignment on SAN devices.
Hey folks, I've been getting requests from the users that they want the OCFS2 filesystems aligned to 64k boundaries, however, when I began the project, the dummy of me, created the OCFS2 filesystem on top of the whole disk device (no partition) for example, one of the SAN devices would show up as /dev/dm-10, I created the filesystem using the following command: mkfs.ocfs2 -L SOMELABEL
2017 Oct 13
5
Share mounts in SMBv1 mode, but fails weirdly in SMBv2 mode
Le 13/10/2017 à 01:46, Jeremy Allison via samba a écrit : > On Thu, Oct 12, 2017 at 03:58:58PM +0200, Hadrien Grasland via samba wrote: >> Hi, >> >> We're slowly deprecating SMBv1 support at work, so I'm trying to >> mount our Samba network shares using SMBv2.0. This should in >> principle be supported by the server, and seems works well enough >> for