Displaying 20 results from an estimated 3000 matches similar to: "Win32 service - Errno::EINVAL (Invalid argument) when uploading image file"
2006 Mar 31
13
validation with in_place_edit_for
i''ve got an in place edit text box for some of my fields. my model has
validates_presence_of for the field but nothing happens. it works fine
in the scaffold when using the edit page, but nowhere else.
anyone have a solution to this?
--
Posted via http://www.ruby-forum.com/.
2013 Apr 09
2
Getting Started
So far I''m disappointed with what I see as red flags. I follow along what
seems like foolproof instructions. I install everything, rails new
/some/new/app cd to the directory and rails server and my worst fears
cryptic useless stack trace...so I copy the top line, search for stuff on
this sqllite3 adaptor to fix it, I type the gem install command it mentions
(gem install
2006 Jun 02
6
overriding constants
Hi there,
I''m trying to override the defaults for form_helper.
I can see in action_view/helpers/form_helper.rb:
class InstanceTag #:nodoc:
include Helpers::TagHelper
attr_reader :method_name, :object_name
DEFAULT_FIELD_OPTIONS = { "size" => 30 }.freeze unless const_defined?(:DEFAULT_FIELD_OPTIONS)
DEFAULT_RADIO_OPTIONS = { }.freeze
2007 Aug 22
8
How to spec an attachment_fu model
First off, I''m not trying to spec attachment_fu, I know it''s been tested.
But, I added some code to that model that I do need to test. Basically,
I need to somehow fulfill the "uploaded_data" property so I can actually
run my tests(otherwise they fail because of validations). The
"uploaded_data" field is what would grab the multipart data from form.
Here
2006 Jun 22
2
rails on Oracle 10g - missing controller ?
I am trying to generate my first scaffold but I am getting a 500 error
from http://127.0.0.1:3000/foo . Below is the information about my
system, as well as the commands I am typing. I have also included the DDL
( Oracle 10g ). I am mid way through chapter 6 of "Agile Web Development
w/ Rails". Why aren''t there any files under app/controllers/ ?
C:\tmp\rubyWork>ruby
2011 Jun 29
1
dns.keytab for Samba4 and Bind9
Hi,
When provisioning a new domain, samba4
creates /usr/local/samba/private/dns.keytab. What's the best way to
create that file manually, when not provisioning a new domain?
My use case is how one migrates from a Windows AD+DNS to samba4+bind9. I
begin by joining a new samba4 instance as a DC to an existing Windows
domain (so no "/source4/setup/provision"), then getting rid of the
2007 Sep 19
3
Rails cannot connect error after updating using ruby and rails to slightly newer versions
I am on a mac. Have been developing using a manually installed
(according to the hivelogic instructions) ruby, rails, gems, mongrel
setup. Life was good.
When I noticed that my ruby version was out of date, I decided to
switch to using macports to maintain the software on my mac. I used it
to install a new ruby and gems, and then used gems to get the latest
rails. Life seemed to be good.
Next I
2008 Jan 03
23
deployment survey
Hello Mongrels,
Building on the last messages about Fastthread, can we get a detailed
survey of the different ways people are deploying their applications?
It will help with near-future Mongrel development.
Please include the following things:
* Framework, if any (Camping, Merb, Rails, Nitro, Ramaze, IOWA, Rack...)
* Mongrel version
* Mongrel handlers used (rails, dirhandler, camping,
2007 Aug 03
6
Problems saving an uploaded image to an app folder
In my app, the user can upload images. Rather than shoving the image
data in the database, i want to put the filename and content type into
the db, then rename the image with its record''s id number, and then save
it into a local folder in my app folder. (hardcoded for now)
All the details are being saved to the db ok, so as far as i know the
"picture_file=" method is fine.
2006 Jul 03
7
form_remote_tag with multipart/form-data
Does form_remote_tag supports multipart/form-data ?
My form looks like this:
<%= form_remote_tag :url => { :action => ''do_image_upload'' },
:html => { :enctype => ''multipart/form-data'' } %>
<%= file_field ''image'', ''file_data'', :size => 32 %>
<%= submit_tag
2019 Jun 26
2
unicode characters in samba-tool user names
Hi,
I would like to add users with unicode characters in their names (not
in username, but in --surname, and in --given-name). I get the
following error message:
ERROR(<type 'exceptions.UnicodeDecodeError'>): Failed to add user
'testuser': - 'ascii' codec can't decode byte 0xc3 in position 16:
ordinal not in range(128)
File
2007 Feb 23
11
Problems getting mongrel service working
Hello list!
I have mongrel service 0.1.0 working on my current production machine.
Upgrading to a new server and also moving to mongrel service 0.3.1
has not worked yet. I am hoping someone will have an idea as to why.
I have mongrel installed properly (I think):
C:\rails\igacc>gem list --local
*** LOCAL GEMS ***
...
mongrel (1.0.1)
A small fast HTTP library and server that runs
2008 Aug 11
1
Unexpected parameter problem using rsaga.geoprocessor() {RSAGA}
Hello,
I discovered SAGA, an interesting free GIS, a few days ago and now, I
would like to use it from within R 2.6.2 using the RSAGA package. I read
the documentation for this package and thought that I understood it
correctly for trying to call some of the SAGA modules. For getting the
information on the usage of and arguments required by the SAGA command
line "Import Binary Raw
2016 Nov 04
4
[PATCH 0/2] improve Lua API for files and initramfs objects
From: Paul Emmerich <p.emmerich at first-colo.net>
Hi,
the new API for initramfs and files in master lacked the ability to build
initramfs objects from files loaded via HTTP/TFTP in Lua. The documentation
indicated that it should be possible (and I believe I did that in an older
version). I implemented a few new functions to handle files/initramfs
objects better.
Changes:
* NEW:
2009 Nov 21
3
Using mongrel_rails: Can't install Redmine as win2003 service
Hello everyone.
After stugging 3+ hours installing redmine I got success but still
can''t install redmine as service (windows 2003).
So here is my problem. I successfully installed redmine and mapped it
to mysql, created database and initialized it with default values.
Last thing I''m trying to do is to install it as service on windows
2003, and for this I''m running in
2019 Nov 23
2
Re: [PATCH nbdkit v2 10/10] tests: Test the Python plugin thoroughly.
On Sat, Nov 23, 2019 at 3:10 PM Richard W.M. Jones <rjones@redhat.com> wrote:
>
> On Sat, Nov 23, 2019 at 01:42:15AM +0200, Nir Soffer wrote:
> > On Fri, Nov 22, 2019 at 9:55 PM Richard W.M. Jones <rjones@redhat.com> wrote:
> > > +def pread(h, count, offset, flags):
> > > + assert flags == 0
> > > + return
2007 Feb 06
4
Mongrel service will not start on win32 w/ --prefix option
All, I am in need of some help. I''ve run into a problem that I am not able
to fix or even troubleshoot. I am trying to run Mongrel as a service on
Win32.
Basically, my problem is that running Mongrel as a service works fine. Fine
until I change the configuration (using service::remove and
service::install) to use --prefix. I must have this as I am running multiple
webapps and app
2009 Mar 27
1
UTF8 postgres args saving issue
Hi, All
I have an encountered an issue where the args field is not saved correctly
to the database. I encounter an error like this:
ActiveRecord::StatementInvalid (RuntimeError: ERROR C22021 M invalid
byte sequence for encoding "UTF8": 0xcb3a H This error can also happen if
the byte sequence does not match the encoding expected by the server, which
is controlled by
2015 Jun 30
3
how is the sha fingerprint generated?
% cat ext_rsa.pub| sed -r 's/.*(AAAA[^ ]+).*/\1/' | sha256sum
~/.ssh swlap1
d4bf8b06f2d9d9af7a11583a5367205ed310a84f0dee68d062e2ddca1e85c3ff -
% ssh-keygen -lf ext_rsa.pub
~/.ssh swlap1
8192 SHA256:FgrfxmdjTM/j4wwRa7nVdPSUaJdqHYMJtJ6aciPl9ug swilson at swlap1 (RSA)
Why do those differ and how would i generate the equivalent (mainly
just curious)? I've also tried base64 and a
2006 Dec 28
3
Mongrel fails in Win32, mongrel_service missing, with possible fix
I just ran into an issue with a new mongrel install on Win32. When
trying to run mongrel from RadRails 0.7.2 on win32, I got an error
while loading that it couldn''t locate mongrel_service.
C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'': no such file to load --
C:/ruby/lib/ruby/gems/1.8/gems/mongrel_service-0.3.1/lib/mongrel_service/init.rb