Displaying 20 results from an estimated 2000 matches similar to: "render file in index"
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
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
2010 Aug 04
2
does R have a command the same with Stata's loop command: ` '
hey, Rers
in Stata therer is a loop command ` ' which could do the following:
forvalue i=1/10 {
?gen?x`i'=expression
}
this will generate variable: x1,x2,,,,,x10. so, does R have a corresponding one
to this?
And one more very basic question: after I open a file and modify it, such as
generate some new variables and change some old ones, how to use the changed
dataset in
2006 May 31
5
Sharing code between some controllers? Staying DRY
Hi,
I have four controllers: one for the store front and three for the
store admin. In each controller I have copied and pasted exactly the
same code. It is a method called redirect_to() to override Action
Controller''s redirect_to(). Copy and paste is bad. I can think of two
options but I don''t know how Rails will feel about them.
Option 1: Can I create an intermediate
2003 Jun 25
1
Installing samba on Red Hat 8
Yo All,
I am trying to install Samba 3 beta on my RH 8 machine.
At the installation of red hat I chosed not to install samba.
I downloaded beta rpm for Red Hat and when I try insatling it I get a msg.
like "flie blabla conflicting with file from
samba-2.2.7'' or something like that.
Now I try runing comand rpm -q samba end that tels me there is no rpm samba.
Not installed! Right?
2012 May 30
1
Samba 4 analyse
Hi,
My actual config
Samba 3 PDC, file and print server use openldap backend
Posix ACL on XFS FS using pam_ldap and ns_ldap.
independant wins and DNS server (not DDNS)
Can I have same configuration in samba 4 ?
LIke :
DC
flie server with posix ACL support and pam, ns_ldap .
independant wins and DNS server (not DDNS).
It's just an analyse !
Have a nice day
St?phane
2004 Sep 10
3
[Flac-users] Warn overwrite output file
I have had this happen to me once: Encoding of a .wav file was interrupted
somehow, so an incomplete .flac flie was generated. I accidentally ran a
decode on that .flac file, which wiped out the original .wav file.
I suggest that flac adopt one of the following to handle the situation that
an output file is specified with -o or implied, and the output file already
exists:
1. rename the
2007 Mar 10
2
barplot, for loop?
Hi R-users,
I have a dataset like this:
kuvaaja
kuva
yhteispisteet
Hannu
isokala
8
Hannu
kaapin alta löytynyt
2
Hannu
kaapin alta löytynyt 2
8
Hannu
limamikko
1
Hannu
maukasta marmeladia
8
Hannu
skrinnareita
4
Hate
madekoukkujen suojelupyhimys
3
Hate
matka aikaan joka ei enää palaa
3
Hate
munat puoliks padassa
6
Hate
pyynikki
2
Hate
vailla armeerausta
2
2008 Jul 16
5
Define INLINEDIR or HOME in your environment error
Hi
I have a proplem. I am using attachment fu plugin and image science
for uploading images on my server. I am getting error : Define
INLINEDIR or HOME in your environment and try again. How I can define
my HOME in envoirment.rb. If I understood it''s directory where uploads
goes.
I priciate for your help.
--~--~---------~--~----~------------~-------~--~----~
You received this message
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
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
2012 Oct 18
4
Rack env rack.multiprocess true with single worker
Hi,
unicorn unconditionally sets rack.multiprocess to true in the Rack
environment. The Rack spec [0] says the following about the variable:
"true if an equivalent application object may be simultaneously invoked
by another process, false otherwise."
When unicorn is running with a single worker this does not hold so what
do you think about setting the variable to false when only a
2007 Mar 11
1
recoding question
Hi R-users,
I have a data frame like this:
photographer category picture points
Hannu kalat limamikko 1
Teemu kalat verkkovaja 3
Hate kalat munat puoliks padassa 6
Hannu kalat isokala 8
Teemu kasvit, sienet ja muut eliöt harppi 2
Hate kasvit, sienet ja muut eliöt pyynikki 2
Petteri kasvit, sienet ja muut eliöt harmaaleppä 5
Lauri kasvit, sienet ja muut eliöt lumipuu 9
Teemu linnut kainostelua 1
2006 Jun 15
2
password change on WinXP
We have samba (3.0.22) configured as 'standalone server' type and
security mode is 'user'. I have configured 'smb.conf' so that windows xp
users may change their passwords from windows box (using ctrl+alt+del)
and I got it work (regardless some sources which say that is not
possible with standalone server). The remaining problem is that now
users should specify a host to
2009 Mar 21
1
Windows server 2003 SP2, SFU 3.5 and Samba 3.0.28
Hello list users,
I have been struggling with this combination in the subject field couple
of days now, so I decided to ask for some advice here. Hopefully someone
can point me to a right direction. The ultimate goal for me is to
authenticate users using AD, so that the UID/GID values configured for
users with SFU would also be in use in all our Linux machines. My
understanding is that using
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
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
2009 Oct 16
2
nss_winbind / offline logon
Hello list users,
I have been struggling to make my AD integrated Debian Lenny box to work fluently also when network connectivity is down. What I would like to achieve:
1) When no network available, local user should still work normally
2) If possible, AD located users should still be able to login if they have previously logged in successfully (cached login)
Number 2 is more like optional,