Displaying 20 results from an estimated 1000 matches similar to: "How to supress field name in error message?"
2006 Jul 05
10
rake migrate RAILS_ENV="production"
On the wiki it says to migrate your DB to production, you can run:
rake migrate RAILS_ENV="production"
This is taken from:
http://wiki.rubyonrails.com/rails/pages/UnderstandingMigrations
My database is set up with correct MySQL permissions granted and the
database.yml is pointing at it. I get no errors when I run it, but
equally my production database does not change at all.
2006 Apr 09
12
Validating two models from one form
Howdy,
I''m working on my first RoR project, and I want to build a form. The
tricky thing is, this form needs to insert / update against two models,
each with their own validation rules. Unfortunately, I''m having an
incredible amount of difficulty with the error handling, specifically
the fields wrapped in <div class=''fieldWithErrors''></div>
2006 Jan 01
5
scaffold not working on Windows XP
Hello,
I did a fresh install of ruby182 and gem rails --include-dependencies
Now when I do:
rails receipts
cd receipts
ruby script\generate scaffold receipt receipt
rails does not create the views or controller.
What can I do?
Thanks
Frank
2006 Jun 21
11
executive: "is rails secure?"
Yesterday, I was doing a dog-and-pony for the head of the company that
I work for.
He asked, "Is this (a rails application) secure?"
I said, "It''s as secure as anything else on the web is," and proceeded
to talk about how the data was protected, how we weren''t saving
anything that''s worth protecting, and so on.
I''d like to have a better
2005 Dec 20
6
Database Query on the fly Using Forms
I am a freshman when it comes to RoR, and I haven''t been able to figure
this out. I need to figure out how to query records in my database using
form check boxes (or radio buttons) then display them in that same
instance. What would this look?
I have been told that just putting a question mark after here,
:conditions => field = ?, but what would the argument look like?
Thanks in
2006 Feb 08
10
Writing activex controls and dlls in ruby.
Is it possible to write activex controls and windows DLLs in ruby? I
would like to have some of my logic be usable from VB (don''t ask why).
Thanks.
2006 May 09
11
model filter?
Hi All,
Is there a way to filter / modify the output of a model class before
it''s returned to controller/view that''s calling it?
Example: I have a field phone_number which I always want to preformat
using the number_to_phone() helper....
Any help is appriciated.
Thanks!
--
Posted via http://www.ruby-forum.com/.
2006 Jan 31
5
Rails auth systems using LDAP?
Hi everyone,
Are there any Rails systems that are either:
* Easily extensible to use a different auth store?
* Use LDAP out of the box?
Thanks,
Sean
2006 Jun 30
4
Posting error: Ruby On Rails mailing list archieve
You do not have permission to post to group railinglist. You may need to join
the group before being allowed to post, or this group may not be open to
posting.
Visit http://groups.google.com/group/railinglist/about to join or learn more about who
is allowed to post to the group.
Help on using Google Groups is also available at:
http://groups.google.com/support
-------------- next part
2006 May 19
3
Change Error messages
Where may i change the default error message for validating a form ?
And the box error title, please : "1 error prohibited this stagiaire
from being saved"
thks
--
Posted via http://www.ruby-forum.com/.
2006 May 08
4
Rubyy on rails hosting
All,
Could any of you recommend an out fit for hosting my rails app that is
not expensive with excellent support. Thanks
Patrick
2006 Jul 05
10
Scalable alternative to #find_all
Is there any scalable alternative to iterating all the records of a
certain model? #find_all seems to load everything into memory. With
500.000 records it will be a swap storm.
Pedro.
2005 Dec 14
3
why would an int column in a join table be a String class in model?
i''ve got an issue with integer columns in the database becoming strings in
the model and I''m not sure why this is happening. perhaps someone can
explain.
given the following setup (simplified for example)
tables:
users
----------
id - int
name - varchar(60)
roles
----------
id - int
name - varchar(60)
roles_users (join table)
----------
role_id - int
user_id - int
2006 Mar 23
4
belongs_to more than one model
Suppose I have one table:
states
id
statename
And I have two other tables that contains states:
houses
id
color
state_id
places
id
place_name
state_id
How would my model relationships look like?
class State < ActiveRecord::Base
belongs_to house
belongs_to place
end
class House < ActiveRecord::Base
has_one state
end
class Place <
2006 Jan 07
4
set date with date_select
when retreiving a date from a DATETIME field in a database, is there a
way to set the date to the value of the DB in the view? It seems to
always default to the current date...
if I have a field called birthdate in the users table and i do
@user = User.find(@params[:id])
in my view i have a <%= date_select ''birthdate'',''user'' %>
but dont know how to
2006 Jun 12
3
AMD64 + Debain + rails + Oracle ?
Hi folks,
Does anyone know how to install the OCI8 ruby interface on Debian64
without having to install Oracle?
My understanding, from experience with Debian i386, is that you need
Oracle (specifically the SQLPlus) installed to be able to compile
OCI8. Since my new dev machine is AMD64 running Debian, I''m stuck.
My rails applications need to connect to a remote Oracle 10g, but
cannot
2006 Apr 20
5
Toolbox
Hello my friends
Today at FISL (International Forum of Free Software), I''ve had the
opportunity to watch a Turbogears presentation.
The framework, itself is really weak in comparison to rails, but... When the
guy who was making the presentation show the NEW 0.9 TurboGears Toolbox I''ve
though:
- Isn''t something like that in Rails?
Well, after a little googleing
2005 Dec 21
10
can an active records maps to N tables?
Hi,
Is it possbile that one active record maps to N
tables, actually the relation is 1 to 1, I wonder it
is possible.
also can a ruby object map to N tables, instead of an
active records?
Thanks you very much:)
Saiho
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
2005 Dec 16
10
''Code table'' best practices?
I''ve been going back and forth about this kind of thing for a while.
I reverse my opinion on it every project, and I''m wondering if anyone
has any advice/battle scars to share. As usual, please forgive my
long-windedness in advance.
Let''s say I have this:
Table: PLANS
ID int
CATEGORY_CODE_ID int
--Other junk removed for clarity
Table: CATEGORY_CODES
ID int
DESCRIPTION
2005 Nov 23
2
Really supress output from Sweave
Hi,
I am using Sweave for chapters in my thesis that contain results.
In the beginning of each chapter, I use this to load libraries I need.
<<init,echo=FALSE,quiet=TRUE>>=
library(gplots)
library(Hmisc)
library(e1071)
@
What I want is, of course, to supress messages written by this code,
but what I get in the end is X-init.tex with this the contents below.
How do I really supress