Displaying 20 results from an estimated 200 matches similar to: "Many To Many''s Join table attributes + migrations"
2007 Oct 17
9
@session['user'] vs session[:user]
This might seem really simple to some but just wanted to ask: what is
the difference between @session[''user''] and session[:user] ? and how
would you use each?
And another question, I have the following code:
def get_customer
if @session[''customer'']
@c = Customer.find(@session[''customer''])
end
end
private
def
2006 Apr 30
3
require "ajax_scaffold" in model error
Hi there,
I''ve got installed ajax_scaffold_generator (3.1.2, 2.2.1)
Anyway I''m following the example here <http://height1percent.com/
articles/2006/04/18/ajaxscaffold-3-1-0-released> which suggests the
following in a model file:
--------------------------------------------------------
require ''ajax_scaffold''
class Pet < ActiveRecord::Base
2002 May 13
2
rsync: network "bind interfaces only" command for rsync?
Hi,
Is there a network interface listen command for rsync
so that for a system with multiple network cards and
multiple IP addresses - rsync will only be visible
on a defined interface and defined IPs?
Like in samba?:
e.g.,
bind interfaces only = True
interfaces = eth0 193.xy.zz.aa 193.xy.zz.ab
Can't seem to find such a thing in the documentation.
Cheers,
Lachlan.
2006 Sep 01
6
ads_kinit_password failed: Preauthentication failed
Hi,
I am have compiled samba 3.0.23b (MIT Kerberos 1.5.1) on Solaris 10.
I am unable to join the ads domain.
net ads testjoin returns the following output...
[2006/09/01 17:25:17, 0] libads/kerberos.c:ads_kinit_password(208)
kerberos_kinit_password ARTEMISIA$@UNIMELB.EDU.AU failed: Preauthentication failed
[2006/09/01 17:25:17, 0] libads/kerberos.c:ads_kinit_password(208)
2002 Sep 08
1
Rsync and trying to mirror Linux user areas
As root, I am trying to mirror a Redhat 7.3 Linux user area
onto another Redhat 7.3 Linux box using rsync. This is using
the following type of command:
rsync -a -v --stats --safe-links
However, rsync cannot mirror most of the user area because
of the default permissions for the user areas.
e.g.,
opendir(user1): Permission denied
opendir(user2): Permission denied
drwx------ 3 user1
2002 Oct 21
1
Rsync and "ignore nonreadable" and timeout
Hi,
Can anyone send me an example config file that makes use of
ignore nonreadable
timeout 600
When I try to put this in a module - rsync seems happy but it
gets nasty logfile messages when a client connects to
the server.
Oct 19 20:30:14 4T:sv1 rsyncd[3706636]: params.c:Parameter() - Ignoring badly fo
rmed line in configuration file: ignore nonreadable
Oct 19 20:30:14 4T:sv1
2006 Sep 26
0
Find Returning String Instead of Integer?
Any ideas on why this is? The quantity field in mysql is INT, but I get
back a string? This is preventing me from using the increment method.
>> @cart = Cart.new
=> #<Cart:0x2730f40 @new_record=true, @attributes={}>
>> @cart.items << Item.find(:first)
=> [#<Item:0x272d6ec @attributes={"vendor_id"=>"1",
2001 Dec 19
3
RSYNC: Backup Solution thoughts...
>I'm thinking of how to backup an entire server ("server A") to a
>remote area ("server B") using rsync.
>
>My initial thought was to have a shell account on server B, then have a
>cronjob running as root on server A that uses rsync to send all the files
>over to the shell account on server B.
>
>Then I thought that this is not reliable against
2002 Nov 08
1
Rsync Re: Trailing /
What should be the official behaviour here?
I must admit some of my scripts probably have both
trailing and non-trailing "/". But just played around
until it was mirroring into the correct directory.
Lachlan.
At 18:20 07/11/02 -0500, you wrote:
>It appears that the trailing slash in the source is being ignored:
>
>rsync -auv clam::root/usr/local/bin/ /tmp/bin
>
>ends
2006 Mar 11
11
Noob needs help with ''if'' block
Hello all. I''m a noob at Ruby on Rails, only started learning a few days
ago, but I''m loving it so far. I do have a few years experience with
PHP, ASP, MySQL, etc., so I''m not *totally* clueless, though. :)
Anyway, I''m having trouble with something that should be fairly trivial:
I have an ''if'' statement that is supposed to print out a table
2002 Oct 29
8
important caveat with Rsync on NT and dayligt savings time
Hi,
just a small warning about something that has, like we experienced just
last weekend, great consequences.
We rsync more than 20 Netware servers through a mapping on an NT machine to
central Rsync destination servers (also NT). Last weekend our clock changed
to Daylight Savings Time. It appears that NT changes the file stamps on
NTFS volumes accordingly (Q129574 on their suppor site). This
2002 Jan 08
1
Rsync on webserver
Here is the problem.
I have a primary and a secondary web server. I want to sync the home
directory paths on the primary server with the secondary server. I am
fairly ignorant to rsync and wondering what is the best method of doing this
and how would I call the procedure from say a "perl script".
Both Servers are FreeBSD 4.2 and there are actually two directorys I want
to sync 1)
2018 Nov 03
2
Red Hat is Planning To Deprecate KDE on RHEL By 2024
On Sat, 3 Nov 2018 at 19:22, Nicolas Kovacs <info at microlinux.fr> wrote:
> My reaction to GNOME 3 has been roughly the same as with systemd. At
> first, I hated it with a passion. Then I saw everyone else seemed to use
> it. So I started to read the docs and experiment a little bit. And now
> I'm using it on a daily basis, and to my bewilderment, I've grown to
>
2002 May 04
3
Send Password with RSYNC_PASSWORD ore --password-file
Hallo,
i am verry sorry about my bad engllish.
But i trie my best...
I trie to setup an Backupserver.
If i use this
rsync -varpog -e ssh /home/www/web6 217.172.xxx.xxx:/home/www/web6
the Server is asking me fore Password.
If i use this
rsync -varpog -e ssh --stats /home/www/web6
217.172.xxx.xxx:/home/www/web6 --password-file=host1.pwd
the Server is asking me too fore Passwort.
How i can bring
2006 Jul 20
1
samba as pdc in Ubuntu dapper, fails on ps$ join?
Hola,
I've done everything as correct as I can see in smb.conf under fresh ubuntu 6.06 fully
updated install to have it run as a PDC on hostname florentine, domain DAVEYST.
There are no testparm errors.
I've added users with useradd and smbpasswd -a
I've added machines with useradd and smbpasswd -a -m
I can see the server in my network neighbourhood and access/browse folders on
2018 Nov 03
1
Red Hat is Planning To Deprecate KDE on RHEL By 2024
On Sat, 3 Nov 2018 at 20:18, Nicolas Kovacs <info at microlinux.fr> wrote:
> Le 03/11/2018 ? 10:10, Lachlan Musicman a ?crit :
> > For me, the saddest thing about this announcement is that I *still* think
> > Amarok is the best media player available, even if I've not used it for a
> > while. Installing the entire KDE base for one program is just too heavy.
> It
2007 Apr 19
7
Lock errors and segfaults
Greetings,
I''ve been using ferret with great results now for a while, but in the last week, I''ve
been running into some issues.
I will occasionally see this message:
Exception Message: Lock Error occured at <except.c>:103 in xpop_context
Error occured in index.c:5368 - iw_open
Couldn''t obtain write lock when opening IndexWriter
Which is accompanied by
2013 Sep 23
1
redirect on browser success, but redirect on functional test is error
line_items.yml:
one:
product_id: 1
cart_id: 1
quantity: 1
carts.yml:
one: {}
product.rb:
has_many :line_items
cart.rb:
has_many :line_items, dependent: :destroy
line_item.rb:
belongs_to :product
belongs_to :cart
line_item_controller.rb:
def destroy
@line_item = LineItem.find(params[:id])
@cart = @line_item.cart
@line_item.destroy
respond_to do |format|
format.html
2001 Nov 20
1
Rsync: Re: patch to enable faster mirroring of large filesystems
Is there any chance this can be added into the distribution as it sounds
really nifty.
Another suggestion unless I have read the following - would it be
useful to have a command option in rsync to generate the file list
by doing the "find" and outputting into a standard format?
(As this would make it less OS specific or kludgy?)
Cheers,
Lachlan.
At 16:06 19/11/01 -0500, you wrote:
2006 Aug 09
1
How to Disable Callbacks on a Model
Does anyone know how to disable a model''s callbacks?
I have a routine that increments a page_view counter for various model
objects in an after_filter in my ApplicationController. I call this:
increment_page_view()
Rather that checking through the trace array in each model callback for
"increment_page_view" I''d rather disable the callbacks from inside