Displaying 18 results from an estimated 18 matches for "uploadfiles".
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:3000/upload#> | Framework
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
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=&quo...
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>
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
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 trying to achieve is a class
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?
Hi LLVM developers,
GCC[1] is able to use Loongson ISA[2] for instruction selection:
$ cat hello.c
#include <stdio.h>
int main(int argc, char *argv[]) {
printf("Hello World\n");
return 0;
}
$ gcc -O0 -S hello.c
$ cat hello.s
.file 1 "hello.c"
.section .mdebug.abi64
.previous
.nan legacy
.gnu_attribute 4, 1
.abicalls
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"
#
2018 Sep 06
2
How to add Loongson ISA for Mips target?
- my old email address.
The ISA_* classes might not be the best choice for this. There's an overall hierarchy and ordering to the ISA_* classes since they represent the generations of the MIPS ISA. If these extensions are available in Loongson chips based on MIPS32r1 and MIPS32r2 for example, it becomes difficult to describe with ISA_* classes without duplicating instruction definitions or
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.
For your interest. Anyone got any .NET 3.0 applications they'd like to
get working? Soon it'll be time to get bug reporting!
---------- Forwarded message ----------
From: Louis Lenders <xerox_xerox2000 at yahoo.co.uk>
Date: 2009/1/14
Subject: Running a simple .Net 3.0 application.
To: wine-devel at winehq.org
I saw some good progress is being made on getting the .net 3.0
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
Hello everyone,
I have a Atcom AX-1600P(1) card with a FXO module and I can't configure
it. I have four extension with this PJSIP settings:
--- /etc/asterisk/pjsip.conf ---
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0
[6001]
type=endpoint
transport=transport-udp
context=from-internal
disallow=all
allow=ulaw
auth=6001
aors=6001
direct_media=no
rtp_symmetric=yes
force_rport=yes
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