Displaying 20 results from an estimated 11000 matches similar to: "Model Relations, Creating, Errors and stuff"
2006 Jan 09
2
First Rails project: input welcomed
Hi everyone,
I''m working on my first Rails project and I''d like some input before
I get started coding in earnest. My previous Web app development
experience has been in standard Python CGI and Zope. I''m here to find
out more about Rails.
I work in technology in an average-sized school district (8,000
students) in Minnesota (USA). One of the problems in our
2005 Dec 26
3
Override Validation?
Hi all,
is there a way to override the validation methods so as to avoid the
div.fieldWithErrors divs from being created on the redisplayed form?
Many thanks in advance,
Nicky
2006 Apr 28
1
beginner - default form values
I want to build a simple calculator with 1 form and a results page.
The form will be redisplayed with an error message upon an invalid value
entered.
I won''t be using any database/active record for this.
The problem i have is when i return to the form page i want to redisplay
the values already entered in the form fields.
Should i use text_field (which seems to be tied to a model) or
2006 Jan 24
2
DOCTYPE declaration:
I am playing around with the Agile Rails development book again and
thought to see what effect, if any, placing a doctype declaration
at the top of an rhtml file would have. When I insert any of the
three standard forms of such declaration at the top of
app/views/store.rhtml the product image disappears when the web
page is redisplayed. The error logged in log/development.log is:
>
2006 Mar 23
3
How to redisplay submitted data on validation error?
Hi!
If i have an object it''s easy.
But i''m making a simple contact form and i check if email address is
correct. If it''s not i redisplay the form with the info that there was
an error (should i use redirect_to or render :action? what''s the
difference?), but all previously submitted data is lost.
I tried creating variables using names of the form fields, but
2005 Mar 30
1
menu.c32, submenus
I am trying to create submenus, or more specifically a single submenu, using PXELINUX and the menu.c32. I have a tftp share with a basic config:
/ (root of tftp)
pxelinux.0
menu.c32
/diskdiag (dir)
/diskdiag/dskdiag.0
/pxelinux.cfg (dir)
/pxelinux.cfg/default
/pxelinux.cfg/dskdiag
one of the menu items in /pxelinux.cfg/default is as follows:
LABEL DISKDIAG
MENU LABEL [^B] Disk Diagnostics
2006 Feb 18
6
Active Record errors value - Why doesn''t this work?
I''m creating an AR object in my controller and then attempting to add
error messages to it:
if (master_storeids.nil?)
@item.errors.add_to_base ''No store is selected''
end
This works without error but when it comes time for AR to add the
record, it apparently initializes the errors because the message that I
added does not cause the AR add to fail as you would
2010 Jul 28
1
anderson-darling test
Hi,
I have the binned data (observed and generated from model) that I would like to
test using the anderson-darling goodness of fit test. But I'm not sure which
package in R to use.
I tried ad.test(...) but it does not recognise the test by Vito Ricci in FITTING
DISTRIBUTIONS WITH R
> ad.test(hist_hume_beec[,1],hist_hume_beec[,2])
Error: could not find function "ad.test"
2007 Dec 22
3
collection_select validation problem
I''m trying to assign a parent foreign key value using
collection_select from my child "new" form. The problem I''m having is
if I do not make a selection, I get the following error instead of the
Rails validates_presence_of error:
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occurred while evaluating
2008 Jan 17
4
Asterisk desktop tools for OS X
Hi everyone,
I have been long working on a project (http://asterisktools.org, to be
released under GPL) that aims to provide desktop tools for Macs. I am
finally getting to the release stages of this application and hope to
have an early BETA available next weekend.
If there is anybody who is interested in this tool, please send me an
email as I am looking for people who can test the
2007 Sep 20
5
Ferret DRB, UTF-8, Mongrel
I have spent days trying to figure out how to get UTF-8 working with my
site.
Here''s my environment:
Linux version 2.6.16.29-xen_3.0.3.0
Ruby 1.8.4 (2005-12-24 [i386-linux]
Rails 1.2.3
mongrel (1.0.1)
mongrel_cluster (1.0.2, 0.2.1)
ferret (0.11.4)
acts_as_ferret stable plugin
Ferret DRB server
When I don''t use an analyzer with my acts_as_ferret declaration,
everything works
2006 Jul 03
0
REST vs. render vs. redirect_to w.r.t. create error messages, efficiency and the desired URL
Hi,
Something has been bothering me for a long time and I''d like to know
what other think about this common situation with Rails.
Someone is looking at http://example.com/user/new where there is a
form that POSTs the data to the user/create action. The controller
might look like
def new
@user = User.new
end
def create
@user = User.new(params[:entry])
if @user.save
2006 Jan 22
3
file_column and tmp files
Hi again...
One more item.. the file_column plugin uses a tmp directory inside the
/public directory to store a temporary uploaded item. But it looks like
this folder is just going to grow and grow. Is there some way to clear
this out or not cause this to happen?
Thanks once again!
--
Posted via http://www.ruby-forum.com/.
2005 Jan 11
3
Kolmogorov-Smirnof test for lognormal distribution with estimated parameters
Hello all,
Would somebody be kind enough to show me how to do a KS test in R for a
lognormal distribution with ESTIMATED parameters. The R function
ks.test()says "the parameters specified must be prespecified and not
estimated from the data" Is there a way to correct this when one uses
estimated data?
Regards,
Kwabena.
--------------------------------------------
Kwabena Adusei-Poku
2010 Sep 02
1
Error: could not find function "ad.test"
Hi,
I'm trying to run an anderson-darling test for normality on a given variable
'Y':
ad.test(Y)
I think I need the 'nortest' package, but since it does not appear in any of
the Ubuntu repositories for 2.10.1, I am wondering if it goes by the name of
something else now?
Thanks
--
View this message in context:
2000 Aug 16
1
goodness of fit
Dear All,
Is there any modules to compute the chi-square goodness of fit ,
K.S. statistics and Anderson Darling nonparametric test and compre the
fitting of a class of distributions using these tests?
Thank you.
Osama Hussien
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send
2006 May 23
1
problem with ad.test
dear experts,
i am a novice and have been trying to use the anderson-darling test
on a simple text file with one column of data.
i have followed the example in the manual to read from a file into a vector(mm).
i am able to see the summary stats with
>summary(mm)
however, when i try to use the ad.test package, it keeps coming up
with the following error messages,
> ad.test(mm)
Error in
2007 Jun 21
2
PHP 4.3.10 on CentOS 4 or CentOS 5
Hi Everyone,
I am in a fix with an installation for a client where I need PHP
version 4.3.10 or above (4.3.x, but not PHP 5). The application we are
trying to run will not run on PHP 5.
CentOS 4.5 provides PHP 4.3.9, is there a quick an easy way to have
PHP 4.3.10 available on either CentOS 4.5 or CentOS 5
Any pointers will be greatly appreciated.
--
"I never look back darling, it
2001 Nov 10
2
Goodness-of-fit on Burr distributed data
I simulate a uniform data and then transformed into Burr(1,3,1) data,
which is of pdf:
f(x)=[3*(x^2)] / [(1+x^3)^2], x>0
How can I perform a goodness-of-fit test (k-s,
anderson-darling,chisq,cramer-von mises,...) on it (should highly accept)
to get test-statistics & p-values?
Thanks!
Sincerely,
Shelton Jin
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
2020 Oct 08
4
__attribute__((apple_abi)): targeting Apple/ARM64 ABI from Linux (and others)
Hello everyone,
I made a quick patch to clang/llvm to introduce an "apple_abi" function attribute
(https://github.com/aguinet/llvm-project/commit/c4905ded3afb3182435df30e527955031cb0d098),
to be able to compile functions for the Apple ARM64 ABI when targeting other ARM64 OSes
(e.g. Linux). This can be seen as the Apple version of the already existing "ms_abi"
attribute.
In