Displaying 20 results from an estimated 600 matches similar to: "file_column does not work with update model"
2006 Jan 28
8
how to pass search parameters to pagination links
I have a search page with a text_field as below
<%= text_field ''program'', ''program_name'' %>
After I perform the search in my controller I go to a search results
view which shows search results and uses Rails pagination. Now how to
pass the search paramters (i.e. params[:program][:program_name] in my
controller) to the pagination links (next and
2006 Jan 17
2
change error messages for Validation helpers?
Is it possible to change error messages for Validation helpers? I am
writing an app against a existing database (so no control over column
names), but when there is validation error (e.g. with
validate_presence_of) I would like to customize the field name. For
example for telephone whose field name is PhoneNumber I would like to
chnage it to "Telephone Number cannot be empty" rather
2012 Mar 20
4
Batch mode creates huge diffs, bug(s)?
So the short summary of my problem is, the batch file rsync creates is HUGE
for a very small change. The idea is to create workstation image with
partimage, update it with some software and send the image update diff over
the wire to a large number of destinations over a satellite link, but the
batch file updates are several orders of magnitude too large. I don't know
exactly how partimage
2008 Jan 15
1
Converting Watir script to Mechanize
I have a Watir script that I would like to convert to a Mechanize
script. The watir code looks like this
require ''watir''
include Watir
def test
ie = IE.new
ie.goto(''http://cpref.gsm.com/inter.asp?r=8084'')
ie.text_field(:name, ''inter_string'').set(''Potassium'')
ie.button(:id, ''image1'').click
2008 Dec 04
2
Does animated gif will work properly using RMagick?
Dear all,
I have used RMagic to read and write a image while uploading. An
animated gif was read from my local machine and was written in my images
folder using RMagick. But the animated gif which i read was witten in my
folder without animation. What should i do to write the gif image with
animation.
Here is my code to read and write image while uploading.
image = params[:image][:blob]
2006 Jun 01
5
Content Management System
I am looking for a good CMS based on Rails that has at least these
attributes:
1. Ease of use ( as it will be used by people who are not html literate)
2. Very easy/flexible to change layout.
So far I have looked at
http://rcms.oopen.de/Home/ (have not installed it yet)
http://adminpages.flowdev.de
http://demo.radiantcms.org/admin/pages
http://www.eribium.org/eribium/
MuraveyWeb does not seem
2006 Jan 05
3
MS SQL server connection problems
I am trying to connect to a remote sql server and I am getting the
following error:
c:/ruby/lib/ruby/site_ruby/1.8/DBD/ADO/ADO.rb:57:in `connect'': Open
(DBI::Databa
seError)
OLE error code:80004005 in Microsoft OLE DB Provider for SQL Server
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist
or access
denied.
HRESULT error code:0x80020009
Exception
2009 Apr 16
3
Presenting R Results in Webpages
I apologize in advance that this question is not specific to R, but I thought some R users may be using this in their work process flow.
I would like to be able to have a tool (prefer "scriptable") that will take two images and some pre-written text and put it on an simple webpage.
That is, it would look something like the following:
|---------------------------------------------|
2003 Jul 31
2
help with graphics
I'd like to use lattice to make graphics under conditional structure like :
if (TRUE) { barchart(....)
dev.print(png, file = "image1.png", width = 600)
}
but there's nothing in the output file. It seems that it's too long to print graphic into the graphical output and the saved file is a blank picture.
it works if I do that without the conditionnal structure.
it doesn't
2013 Jun 20
10
Two identical copies of an image mounted result in changes to both images if only one is modified
Hi,
I''ve observed a rather strange behaviour while trying to mount two
identical copies of the same image to different mount points.
Each modification to one image is also performed in the second one.
Example:
dd if=/dev/sda? of=image1 bs=1M
cp image1 image2
mount -o loop image1 m1
mount -o loop image2 m2
touch m2/hello
ls -la m1 //will now also include a file calles "hello"
2006 Jul 04
3
act_as_state_machine plugin inaccessible
Seems like act_as_state_machine plugin is not accessible from
http://lunchroom.lunchboxsoftware.com/articles/2006/01/21/acts-as-state-machine
as this site is down and script/plugin discover is broken as it fails
when trying to add plugin repositories giving the message as below;
Add http://svn.northpub.com/plugins/? [Y/n] y
(eval):3:in `each'': undefined method `[]'' for
2006 Feb 01
1
Rails pagination problem
I am having this problem with pagination query in my controller class.
I am using SQL server and following code to create pagination fails,
complains about column name ''program_name'' (which is valid
column/attribute of program)
The error message is:
DBI::DatabaseError: S0022 (207) [Microsoft][ODBC SQL Server
Driver][SQL Server]Invalid column name
2008 Jul 25
4
Creating a Bootable Image file
Newbie Question:
We are using RHEL 5.2 with the 2.6.18-92.1.6.el5xen kernel. I am trying
to follow instructions that I found to create an bootable image by doing
the following:
I first created a 10 gig file and formatted the partition using the dd
and mkfs.ext3 commands:
dd if=/dev/zero if=generic.img bs=1024k count=10000
mkfs.ext3 -t ext3 generic.img
>From a working image that I
2010 Aug 10
2
p-values with pvclust
Hi,
if you look at the first image (Image1) you see that there are 2 main
clusters 7 and 8
I wanted to use pvclust to calculate a p-value whether these clusters are
due to chance
or statistically significant. Unfortunately pvclust does not provide a
p-value for the first
brunch (7 and 8).
So I added a row to my matrix which is very different to the rest of the
data to create an additional
2012 Oct 22
2
Assigning values to several consecutives rows in a sequence while leaving some empty
Hello all,
I'm trying to group several consecutives rows (and assigning them the same
value) while leaving some of the rows empty (when a certain condition is not
fulfilled).
My data are locations (xy coordinates), the date/time at which they were
measured, and the time span between measures. Somehow simplified, they look
like this:
2006 Mar 08
3
file_column Cropping -> image offset information
Hello,
I had a problem cropping images with file_column. These are my settings:
file_column :image, :magick => {
:versions => {
:thumb => "80x80>",
:medium => "150x150>",
:square => {
:crop => "1:1",
:size => "50x50!"
}
},
2006 Jan 04
2
how to display validation error messages for multiple record form
I am trying to figure out how to display model validation error messages for
a multiple record form.
My form is for setting up new accounts and collects information for two
models - Accounts and Users.
My create method collects the parameters from the form and adds them to a
Account object and a User object then runs account.valid? and user.valid?.
If it''s valid it updates the models
2005 Aug 23
2
Using tcltk to display jpeg images
Dear R Helpers,
Does anyone know how to use tcltk to display jpeg images? The manual says
that
one must use Tk_PhotoCreateImageFormat to register the jpeg image handler.
The
"ActiveTcl User Guide"
(http://support.serv.ch/lang/tcl/img/doc/img-jpeg.html)
says:-
"The package img::jpeg is a sub-package of Img. It can be loaded as a part
of the complete
Img support, via package require
2005 Apr 22
1
Newbie Question
Dear All,
I have installed Red Hat Enterprise 3 on one Intel-32 bit machine. I
have
installed all systemimager/systeminstaller/flamethrower RPMS that machine. I
would like to install OS through PXE boot on another Athlon machine.
When I execute mkssimage for creating a image master
# mksiimage --Add --name image1 --path
/var/lib/systemimager/images/image1 --filename
/root/rpmlist
2005 Oct 14
0
ImageMagick helper
Trying out the imagemagick helper by Gijs van Tulder, I''ve run into a
bit of a problem.
In environment.rb, I placed: require_gem ''actionpack-imagemagick''
I''ve set up my controller as such:
class ProfileController < ApplicationController
# ..SNIP..
class Photo < ApplicationController
imagemagick_for