similar to: Showing error messages for two models as one heading

Displaying 20 results from an estimated 10000 matches similar to: "Showing error messages for two models as one heading"

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
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 Feb 10
0
Update two models that have belongs_to relationship
I have model Program and model PointOfContact. Program belongs to PointOfContact. There is a form to update values, which shows attributes from both models on one form. What is the best way to update the models with one call. I tried this and it did not work Controller code: @program_old = Program.find(params[:id]) @program = Program.new(params[:program]) @program.id =
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
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 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
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 20
1
R build fails during make when configured with "--with-x=no" (PR#13665)
Full_Name: Jeet Sukumaran Version: 2.9.0 OS: OS X / Rocks 5.1 Submission from: (NULL) (66.45.136.241) If R is configured using the "--with=x=no" option, then the make fails with the following error: make[4]: Entering directory `/home/jeet/Scratch/r-build/on-frontend/R-2.9.0/src/modules/vfonts' gcc -std=gnu99 -I. -I../../../src/include -I../../../src/include -I/usr/local/include
2009 Apr 20
0
R build fails during make when configured with "--with-x=no" (PR#13666)
jeet at ku.edu wrote: >=20 > If R is configured using the "--with=3Dx=3Dno" option, then the make fa= ils with the > following error: ,,,, > make[1]: *** [R] Error 1 > make[1]: Leaving directory `/home/jeet/Scratch/r-build/on-frontend/R-2.= 9.0/src' > make: *** [R] Error 1 >=20 > The problem appears to be with the "src/modules/Makefile".
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
2010 Jun 01
5
Help barplots
Dear All, I am newbie to R, and I wanted to plot a barplots with R and in such a way that It will also show me position which I can plot on the bar line. Here is my code that I am using to plot, > chromosome <- c(40.2, 35.6, 36.1, 29.6, 31, 29.6, 31, 29.4, 28.2, 23, 23, 28.2) >barplot (chromosome, col="purple", xlab="Oryza sativa Chromosomes", border = NA, space =
2007 Jun 23
1
regarding testcode in xenstore
Hi I am tring to build the testcode for xenstored # cd xen-3.1-src/tools/xenstore/ # make testcode but it generating error due to conflict of function in fake_libxc with libxc. Error: gcc -Werror -Wp,-MD,.fake_libxc.o.d -I../../tools/libxc -I. -DTESTING -c -o fake_libxc.o fake_libxc.c fake_libxc.c:41: error: conflicting types for ‘xc_evtchn_notify’ ../../tools/libxc/xenctrl.h:692: error:
2007 Jun 23
1
regarding testcode in xenstore
Hi I am tring to build the testcode for xenstored # cd xen-3.1-src/tools/xenstore/ # make testcode but it generating error due to conflict of function in fake_libxc with libxc. Error: gcc -Werror -Wp,-MD,.fake_libxc.o.d -I../../tools/libxc -I. -DTESTING -c -o fake_libxc.o fake_libxc.c fake_libxc.c:41: error: conflicting types for ‘xc_evtchn_notify’ ../../tools/libxc/xenctrl.h:692: error:
2010 Jun 04
1
Shapes in barplots
Hi, I am making barplots . I am using the default shape of barplots with a pipe but I wants to build bars in various 3d shapes. I have install rgl using install.packages('rgl') for this purpose, but when I am doing library(rgl), it shows Error in library(rgl) : there is no package called 'rgl' What are the other ways to build such plots of variuos shapes. Is that *TeachingDemos
2010 Jun 10
2
points marking
Hi, How to mark points on x axis of a graph keeping x axis as constant and changing y from y1 to y2 respectively. I want to highlight the area from y1 to y2. Any suggestions Thank you Jeet [[alternative HTML version deleted]]
2012 Sep 10
1
bwplot(): Can Panel Heading Span Two Lines?
A conditioning factor for bwplot() is the stream name. There are 17 streams so each panel is comparatively small and the names in the panel header are truncated at both ends. I would like to wrap the names on two lines for each panel but do not see if this can be done when I look at the online docs (?bwplot) or the Lattice book. Is there a way to fit long strings as headers with multiple panels on
2009 Nov 22
1
quota dict
Hello, i'm using dict quota stored in mysql (/etc/dovecot/dovecot-dict-quota.conf): connect = host=localhost dbname=vmail user=dovecot password= # CREATE TABLE quota ( # username varchar(100) not null, # bytes bigint not null default 0, # messages integer not null default 0, # primary key (username) # ); map { pattern = priv/quota/storage table = quota username_field =
2006 Apr 23
1
file_column does not work with update model
When I am creating a model, everything works but not during update (where I use Model.update_attributes(model_attributes) ). I get the error: Do not know how to handle a string with value ''image_xxx.jpg'' that was passed to a file_column. Check if the form''s encoding has been set to ''multipart/form-data''. The form is indeed multipart. Does
2005 Aug 10
1
Why only a "" string for heading for row.names with write.csv with a matrix?
Consider: > x <- matrix(1:6, 2,3) > rownames(x) <- c("ID1", "ID2") > colnames(x) <- c("Attr1", "Attr2", "Attr3") > x Attr1 Attr2 Attr3 ID1 1 3 5 ID2 2 4 6 > write.csv(x,file="x.csv") "","Attr1","Attr2","Attr3" "ID1",1,3,5
2005 Oct 17
1
fax - conversion problem
I am having a strange problem. On one * box I setup the fax recive, via spandsp -app_rxfax I have no problem here. On a second box I did the same. The resulting PDF appear "corrupt". If I transmit the same fax to both * box, the tiff files received are the same. A deeper analysis shows the only problem is the width and heigth of the document In the first PDF, I see