Displaying 20 results from an estimated 800 matches similar to: "validates_length_of && validates_presence_of: Duplicate error messages?"
2005 Jun 24
0
lighttpd - sporadic mysql errors
I''m getting a strange error in the production.log (I''m on a TxD shared
server). The first entry is a successful request from right after
restarting lighttpd and killing all the procs, the second is the error
after accessing the site half an hour later without having changed
anything. Restarting lighttpd resolves the issue. What might be going
on?
2005 Aug 18
0
Vitalsource - what are the potential applications of this?
If you haven''t seen Vitalsource (http://www.vitalsource.com), take a
look at it. Very cool stuff, apparently they''re putting a native GUI
frontend on their Rails app.
What kinds of possibilities does this open up?
___________________
Ben Jackson
Diretor de Desenvolvimento
ben-p14LI7ZcAE/pVLaUnt/cCQC/G2K4zDHf@public.gmane.org
http://www.incomumdesign.com
2005 May 10
6
How not to use AJAX
Hi all,
Just ran across this article
http://blog.taragana.com/index.php/archive/how-not-to-use-ajax/
and was curious what the consensus is on the bookmarking and search
indexing problems. I remember seeing something about bookmarking on the
list. Thanks,
Ben
--
Ben Jackson
Diretor de Desenvolvimento
INCOMUM Design & Conceito
ben-p14LI7ZcAE/pVLaUnt/cCQC/G2K4zDHf@public.gmane.org
2005 Jul 27
1
Upload Progress, Error in Ajax.PeriodicalUpdater
Hi,
I''m using Upload Progress class of rails and geting this javascript
error in js console:
"*Ajax.PeriodicalUpdater is not a constructor*"
The view have somethink like:
<%= form_tag_with_upload_progress( {:action => ''create_gallery''},
{ :name => ''new_gallery'',
:begin =>
2005 Apr 20
4
Error in tutorial or sintax changed?
Hi,
In this tutorial
http://wiki.rubyonrails.com/rails/show/HowtoUseJoinsWithFindAll
it sad:
sql =<<SQL
SELECT articles.*, authors.name AS author_name
FROM articles
LEFT JOIN authors ON author_id = authors.id
SQL
and this return
*app/controllers/media_controller.rb:366: can''t find string "SQL"
anywhere before EOF*
what is wrong? the tutorial or ruby changed?
please,
2005 Jun 08
7
Rails/lighttpd: Changes to controller not being seen?
This is a weird one:
My app works fine on our local box with webrick. After uploading to TxD
server, the app starts behaving weirdly. I make some edits to one of
the controllers and my changes don''t seem to be going through. So I go
ahead and change the name of the controller file. The page loads
without error. I figure maybe I''m in the wrong directory, so I change
the
2005 May 17
5
Strings, Variables and GetText
Hi,
I''m starting to use GetText and have this code:
render_text %(<script language="JavaScript" type="text/javascript">
parent.mainframe.onUpdateNew("Gallery <b>#{@media.name}</b> was
successfully created.",
"#{@media.name}","#{String(@media.id)}","#{@media.media_type}");
</script>)
I need to convert
2005 Sep 13
2
rsync asking for user authentication even with no "auth users"
Hi all,
My rsync server was working fine and dandy with only the "hosts allow"
method of authentication until my hosting company switched servers. Now
after changing my config to reflect the new IP and running
rsync mydomain:myrepository/
from the server, rsync asks for authentication for my remote username.
Even with this simple config:
log file = /var/log/rsyncd.log
pid file =
2006 Aug 17
2
validates_length_of with char field
I am new to ruby/rails and am having a problem with validates_length_of.
It seems to work fine on a varchar field, but when I try it on a char
field the extra characters are silently truncated and the message
appears that the record was successfully updated.
How can I get my app to produce my error message instead? I''ve tried
various variations, but here''s one of my tries:
2012 Aug 14
3
validates_format_of :message not working, validates_length_of :message is working
I''m using validates_format_of and the validation I want to do works, but I
can''t get an error message to be displayed if the data is invalid:
validates_format_of :mobile, :with => /\A[\+0-9]+\Z/, :message => " - Wrong"
I have another validation some where else that does display the error
message: " - Name is too long"
validates_length_of :name,
2007 Mar 29
4
validates_length_of not working with :if ?
Hello,
I''m trying to cut down the errors if the guy already getting the empty
nickname, so he doesn''t get anything about the nickname is short.
validates_presence_of :nickname
This below is not working ?
validates_length_of :nickname, :within => 4..40, :if => Proc.new {
|user| user.nickname.length > 1 }
nor this one below?
validates_length_of :nickname, :within
2005 Dec 29
0
UTF-8 and validates_length_of
Hello,
according to
http://wiki.rubyonrails.com/rails/pages/HowToUseUnicodeStrings
Rails is not ready for UTF-8 in many places, e.g. the
validates_length_of method. However, I see UTF-8 used in many Rails
applications. So, hopefully, is the wiki page now out-of-date?
Cheers,
Nils
--
Posted via http://www.ruby-forum.com/.
2007 Jul 24
13
Problem with validates_length_of an integer
Hello guys, I''m trying to validate the input of an integer from a form,
here is a bit of code:
This is the definition of the offending column in the migration:
t.column :position, :integer, :default => 0, :limit => 3, :null => false
And here is how I try to validate it inside de model:
validates_length_of :position, :within => 1..3
And this is the exception I get when I
2006 Jan 03
6
Am I going too far or Rails is just confusing? was {validates_presence_of *_id attributes}
Thanks for the input Blair Zajac and Chris (Nolan and Hall), and for others.
If all of you have time, please follow this (the question still
relates to the previous posts by me):
I have provided full steps to reproduce the symptoms.
If it matters, I''m running Ruby 1.8.2, Rails 1.0, and MySQL 5.0.15 on
Windows XP Professional.
1. First, the setup
MySQL
-----
create database testdb;
2007 Mar 08
0
[JOB] Full Time Ruby on Rails Position in Phoenix, AZ
Description:
We are looking for a skilled Ruby on Rails/PHP developer that can join
our team and assist us in day-to-day projects as well as the development
and maintenance of our upcoming, top-secret web app! This is an
in-house, full-time, hourly position.
Required Skills:
- Ruby on Rails
- AJAX web browser client technologies, ie. Javascript, CSS, DOM+XHTML,
XML, CSS, JavaScript, Web Services.
2007 Feb 27
11
Mongrel upload progress not showing progress on production server
Hi all,
Tried out the mongrel upload progress plugin with Drb and it works
great on my OSX development box, but when putting it into production
(Ubuntu Dapper), uploads complete but the app isn''t returning any
values for upload progress, and uploads are not showing up in the
queue when running upload_client.rb. Before anyone asks, yes, I''m
running both the mongrel instances and
2005 Jun 21
3
dynarch calendar problem when used with ajax
I''ve got a partial with a form using the dynarch calendar
(calendar_field behavior). Working.
Now I render this partial from the action specified in to a link_to_remote.
Now when I click the calendar it''s not showed anymore.
theese lines:
<%= stylesheet_link_tag ''calendar-system.css'' %>
<%= javascript_include_tag ''calendar'',
2007 Oct 13
4
Chapter 9
Hello,
I''m currently stunk on this issue for few days and I do not know how
to get it fixed.
The system always raises this error message :
order is closed
and here is my order.rb:
class Order < ActiveRecord::Base
include ActiveMerchant::Billing
before_validation :set_status
attr_protected :id, :customer_ip, :status, :error_message, :updated_at, :created_at
attr_accessor
2006 Feb 17
7
Rich Text Editor (RTE)
Hello,
We are developing an commercial application that need to use an RTE.
Someone know one RTE editor that can I use in an commercial application?
We need basic functions to format paragrapher, bold, italic, ...
I found FCKEditor but it is very expensive and weight.
I found this list too but don''t know what is trustful:
http://www.geniisoft.com/showcase.nsf/WebEditors
Some
2006 Feb 09
0
Validations with conditions (:if)
Hello all.
I have a users table (it has three columns: name, password, active) and
I want to validate it''s name column only if the active column is set to
true. To do this I use the :if statement in all my validations, but it
doesn''t work. I''ve tried many ways to do this (using Symbols, Proc''s or
methods) and nothing works (using Symbols doesn''t