Displaying 20 results from an estimated 3000 matches similar to: "Help --- My phone number field saves blank"
2007 Jul 11
4
Query scoring - WTF?
Hi!
I thought I understood Ferret''s query scoring and how to tweak
results using boost values. What I currently experience however,
leaves me completely baffled.
Perhaps someone can shed some light on the scoring algorithm, because
asking Ferret to "explain" the score for a particular document isn''t
as informative as I thought. Actually, it confuses me even
2009 Nov 11
6
HeLp oN my database
Using my application i can able to save a new record into my db
but i cannot update a existing record into my db.
using update query i can able to update my records.
but using update_attributes it doesnot update my records.
even i cant find any errors in logs or something.
throughout my application i can able to save a new record but unable to
update my existing records.
actually i have changed
2012 Aug 17
3
Rails doesn't validate create_model or build_model (has_one association)
I''ve got User has_one Shop. Rails is not validating when I tried
create_shop or build_shop, neither in the browser nor the rails console.
My code:
class Shop < ActiveRecord::Base
attr_protected :user_id
belongs_to :user
validates_presence_of :name, :primary_address, :city, :country_code,
:currency
end
class ShopsController < ApplicationController
before_filter
2006 Jun 14
3
where to define a struct
Hello,
I''m trying to use the following Struct in my web app:
UserInfo = Struct.new( "UserInfo", :first_name, :last_name, :email,
:domain_name )
I placed this in the environment.rb, thinking that it should be
initialized only once.
But when I try to access it from within my controller, I get:
undefined method `UserInfo'' for #<UserController:0x243ad5c>.
so
2012 Nov 18
2
Question about making histogram and x must be numeric
Hello all,
I hope someone of you can help me out, I have searched other posts as well
but I can't find any solution to the problem I'm dealing with.
I want to make a histogram from the data Telephone Lines
MDGdataset <-read.csv("MDG_dataset_2010.csv", header=T)
MDGdatasetAdapted <- subset(MDGdataset, select = c(Country_Code,
Country_Name, Year,
2008 Mar 19
2
Stub / Mock - A little guidance?
Hi there,
I''m still trying to wrap my head around when to use a stub and a mock.
If I understand this right, I should be using a ''mock'' when imitating
an object, but not its behavior. I should be using a stub when I want
to imitate the behavior of an object. Does that sound about right?
With that said, I''m struggling a little trying to spec out this
instance
2002 Nov 24
2
vpopmail support?
Well, I read that back in 0.98 or so vpopmail support should work so I assumed it would be enabled in 0.99 but here's what I get.
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/lib -I/usr/local/vpopmail/include -g -O2 -Wall -W -g -O2 -Wall -W -c userinfo-vpopmail.c
In file included from userinfo-vpopmail.c:12:
/usr/local/vpopmail/include/vpopmail.h:133: syntax error before `*'
***
2002 Dec 22
1
[Fwd: ./configure options..]
Oops, wrong address..
-------- Original Message --------
Message-ID: <3E0618CB.1060106 at is.a.fakepope.com>
Date: Sun, 22 Dec 2002 11:55:55 -0800
From: Jesse Peterson <erage at is.a.fakepope.com>
User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20020901
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Dovecot Mail List <dovecot at procontrol.fi>
Subject:
2009 Jul 07
1
Adding data in two tables simul;taneously with Validations
Hi All,
I have 2 tables
1] user_infos &
2] users
class UserInfo
has_one :user
validates_presence_of :city
class User
belongs_to :user_info
validates_presence_of :first_name
i write following code in my create method.
@user_info = UserInfo.new(params[:user_info])
@user=@user_info.build_user(:first_name=>'''')
if @user_info.save
else
end
now what i want is to
2003 Jan 17
1
Unable to Log in on FreeBSD server?
Hello!
I recently compiled dovecot 0.99.7 on a FreeBSD 4.3 server, and have
been having problems with logging in and password authentication.
a. I can't seem to get it to compile MD5 support -- it only seems to
support plain, plain-file, and pam.
b. Whenever I try to log in, I always get something along the following
lines in /var/log/messages ....
Jan 16 17:52:15 akira imap-login:
2004 Mar 11
5
win32-etc-0.2.2 testing wanted
I''ve commited code for win32-etc 0.2.2, which adds the configure_user and
configure_group methods. Testing appreciated. On my home system, I can''t
get configure_user to work, but I haven''t any real idea why it fails. The
configure_group method seems to work fine, however.
Dan
_________________________________________________________________
Fast. Reliable. Get
2008 Feb 14
4
How do I access this parameter?
Hi,
I have a form for creating users ...
<% form_tag ''userconfirm'' do -%>
<!-- more code -->
<p><label for="user_login">Username</label><br/>
<%= text_field ''user'', ''login'' %></p>
<p><label for="user_password">Password</label><br/>
<%=
2003 Jan 14
1
0.99.7 out
This one seems to be actually working. Also rewrote doc/index.txt in
case someone is interested.
2019 Dec 23
3
macintosh disconnect problem
Hi all,
We're having trouble with Macintosh clients (at least) being
disconnected from Samba. Below is one macintosh console output when
this happens, filtered by "smb". (Yeah, maybe some clues are missing...)
ATM I don't see anything that stands out in the Samba log file.
However one thing I don't see in the samba log file is session disconnects.
Does anyone
2006 Apr 27
0
DRY validation
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
A few months ago someone posted a message about specifying validates_*
constraints on a per-attribute basis. I just created a small plugin
that
allows you to do this.
Here''s an example from one of my models:
class Country < ActiveRecord::Base
attribute :name, :string do |a|
a.validates_length :within =>
2006 Jun 25
3
Dummy field in a model
I want to have a field in model, which I''m not storing in a database.
And I want to do something like the following in the model code :
validates_format_of :field_NOT_in_db, :with => session[:field]
How can I do it ?
Thanks,
Pratik
--
rm -rf / 2>/dev/null - http://null.in
2006 Feb 04
4
AJAX rendered select doesn''t get submitted
I have implemented the AJAX observe_field to filter the state/province options
in my address form. This works great except when I submit the form, @params
doesn''t contain the select element.
_address_form.rhtml relevant snippet:
<%= collection_select(:address, "country", Country.find(:all, :order =>
"position"), :code, :name, {:prompt => "-- Select
2016 Jan 23
3
Best way to sync Samba AD 4 LDAP with OpenLDAP
Hello all,
At this moment we are still using Samba 3 for our Windows clients but we are in need for an Active directory. So the best solution for us looks like migrating to Samba 4 AD.
But... we have a very robust OpenLDAP setup that we want to use for our default user administration and don't want to give this up.
We really would like to syncing information from and to Samba LDAP but my
2008 Oct 27
8
pagination in ajax
hi,
I am curently using rails version 2.1.1.
Currently i have done simple pagination using will_paginate
plugin.it works.but when i am trying pagination using ajax
with help of will_paginate plugin
it wont works.i am also using RemoteLinkRenderer helper,
but it gives an error uninitialized constant RemoteLinkRenderer.
can anyone provide any tutorial or sample code so that i can
2008 Sep 01
1
Porting Swfdec to Mac OS X & Timing question
Hi all:
I've been working on porting Swfdec to Mac OS X on my own time. So far
I'm making some progress; stuff is displaying and events are working.
I still have a bit of work to do, but in the meantime, I have some
questions:
1. How does one get the ability to commit things to the repository? I
don't expect this right away; I'll probably just distribute the Mac OS
X