Displaying 2 results from an estimated 2 matches for "publicnam".
Did you mean:
publicname
2005 Sep 25
2
Problem issue with belongs_tohas_one and error_message_on
...nship with belongs_to - has_one and with
error_message_on
I have splitted one huge table users into two tables user and profile.
In users I''m keeping main fields like id,email,password and in profile there are
the rest of fields.
Table users:
id,email,password
Table profiles:
id,user_id,publicname, and more ...
My models are:
- user.rb
has_one :profile
- profile.rb
belongs_to :user
Briefly User controller looks like .
class UserController < ApplicationController
model :user, :profile
def register
@user = User.new(params[:user])
if request.post? and @user.save...
2008 Oct 28
1
Possibly OT: intermittently long response times when connecting to host
...eft out.
Thanks,
Dave
Relevant info:
uname -a: Linux internal-name.domainname.com 2.6.18-92.1.13.el5 #1 SMP
Wed Sep 24 19:33:52 EDT 2008 i686 i686 i386 GNU/Linux
relevant portion of httpd.conf:
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot /path/to/drupal-current
ServerName publicname.domainname.com
ErrorLog /path/to/logserror_log
CustomLog /path/to/logs/access_log common
</VirtualHost>
/etc/hosts:
127.0.0.1 localhost.localdomain localhost internal-name
12.34.56.78 publicname.domainname.com
12.34.56.79 db-server.domainname.com db-server