Displaying 13 results from an estimated 13 matches for "skt".
Did you mean:
set
2011 Jan 15
3
has_many :through with Single Table inheritance
I have the following model structure setup.
class User < ActiveRecord::Base
end
class Parent < User
has_many :relationships
has_many :children,
:class_name => "Student",
:through => :relationships,
:conditions => "related_as = ''parent''"
end
class Student < User
has_many :relationships
2024 Jul 23
0
possible command line parsing bug on Cygwin
...This is not easy for me because I like "closure", but oh well.
I noticed a bug that is not inconveniencing me at all.
In fact, it's saving me a few characters of typing.
I consider it my duty as a good citizen to report it anyway.
Consider the following ssh invocation:
ssh -N -M -S skt -o ControlPersist=30 localhost
On Cygwin but not on Linux (don't know about BSD) the above command behaves as if "-f" was also given.
As it happens, I actually want -f anyway. But this seems like it is not supposed to happen.
That's all from me.
Mark.
This message is for info...
2011 Jan 08
1
Paperclip custom Interpolation in url
Folks,
I have a simple model hierarchy (reduced to example as below)
class Post < ActiveRecord::Base
has_many :comments
end
class Comment < ActiveRecord::Base
belongs_to :post
has_attached_file :photo,
# :url => "/assets/class_cal/<original post
date>/:id/:style/:basename.:extension"
:url =>
2011 Mar 28
1
gluster 3.1.3 mount using nfs
Hi all,
I setup the gluster filesystem and I want to mount the gluster volume using nfs in unix system.
My machine is hp-ux (11.23)
I put command like below but it has error
test14:/>mount -F nfs -o proto=tcp,port=38465,vers=3,llock 150.2.226.26:/temp /mnt
nfs mount: get_fh: 150.2.226.26:: RPC: Program not registered
nfs mount: get_fh: 150.2.226.26:: RPC: Program not registered
nfs mount:
2004 Oct 23
5
Hardware
Hi guys I know this has been asked on the list before, but my hard drive
crashed and I lost all of the past posts, I need to know what motherboard
works ok for asterisk, I have no problems with the Dual and Quad Xeon
processor boards I have used. Now I plan on building a Pentium 4 3.0 with
hyper-threading. I looked through the wiki and could not find the
recommended P4 board. Does anyone have
2005 May 07
1
Echo Madness
Hi there, I'm experiencing an echo problem and dammed If I can sort it out.
We're running Asterisk on Fedora Core 3 64bit, installed as per
http://www.voip-info.org/wiki-Asterisk+Fedora+Core+3.
These are the specs of the Machine ?
1 x AMD A64/3500+ CPU: Desktop Athlon64? Retail w/fan SKT
1 x Asus A8N-SLI Deluxe Athlon? 64 S939 NVIDIA nForce(r)4 SLI? PCI
Express Req: 24pin ATX
1 x Corsair TWINX1024-3200XL 2x 512MB 1024MB Dual Channel Optimised Pair
2 x Western Digital WD1200JD/PD-SATA 120GB Serial ATA 150Mbps 7200rpm
HDD 8Mb Cache
1 x Leadtek PX6200...
2009 Apr 12
4
Can't get an Array function to be visible inside ApplicationHelper
Folks,
I seem to be missing something basic here.
I am trying to call a function from my application layout that will
return me a hash of the roles for the user currently signed in. Here
is the simplified code I have in ApplicationHelper module
class Array
def to_h
Hash[*enum_with_index.to_a.flatten]
end
end
def get_cur_user_roles
["school_admin",
2005 Feb 13
1
missing X11 graphics title bar
I have on occasion had the problem of missing title bars on X11
graphics windows when using R, and would like to know what others have
found in terms of the occurance, source, or solution of this problem.
In searching for information on this I found only the brief thread
from last November which I have copied below. Anyone who has
experienced this knows it brings a very unwelcome interruption to
2020 Sep 09
17
[trivial PATCH] treewide: Convert switch/case fallthrough; to break;
...llthrough;
+ break;
default:
break;
}
diff --git a/drivers/pcmcia/db1xxx_ss.c b/drivers/pcmcia/db1xxx_ss.c
index a7c7c7cd2326..d5eec00aaf97 100644
--- a/drivers/pcmcia/db1xxx_ss.c
+++ b/drivers/pcmcia/db1xxx_ss.c
@@ -258,7 +258,7 @@ static int db1x_pcmcia_configure(struct pcmcia_socket *skt,
fallthrough;
case 33:
++v;
- fallthrough;
+ break;
case 0:
break;
default:
@@ -273,7 +273,7 @@ static int db1x_pcmcia_configure(struct pcmcia_socket *skt,
case 33:
case 50:
++p;
- fallthrough;
+ break;
case 0:
break;
default:
diff --git a/drivers/power/supply/abx50...
2011 Jun 02
10
Application Error!!!!!!!!!!!!!!!!!!!!!!!
Hi everybody,
Please any one help me, Previous two day''s I am googling, Still not
find solution. this really frustrating.
I had deploy my app on heroku http://radiationn.heroku.com/. it is
working fine on localhost but i got APPLICATION ERROR.
IN log wht i find that in photo.rb model not able to find
"has_attached_file", I am not able to shout out this proble. It
working
2008 Mar 20
0
Mixing stored procedure call with RoR db calls in the same function gives errors
Folks,
I am using ruby 1.8.5 with rails 1.2.3 and have made changes to
mysql_adapter.rb based on recommendations made here
http://wiki.rubyonrails.org/rails/pages/StoredProceduresInMySql to be
able to use stored procs in my code.
I have changed this call in mysql_adapter.rb
ConnectionAdapters::MysqlAdapter.new(mysql, logger, [host, username,
password, database, port, socket], config)
to
2011 Mar 02
0
polymorphic_path not getting generated
Folks,
I am trying to use the Savage Beast plugin in a polymorphic way. I
have setup my model as below
# Leaving out other details from models
class Forum < ActiveRecord::Base
has_one :recent_topic, :class_name => ''Topic'', :order => ''sticky
desc, replied_at desc''
belongs_to :forum_owner, :polymorphic => true # Helps keep track
of which
2011 May 31
1
Geokit query with multiple models involved
Hello,
My database structure consists of Store, Book, BookStore and Address
as below.
class Store < ActiveRecord::Base
has_many :book_stores
has_many :books, :through => :book_stores
has_many :addresses
acts_as_mappable :through => :addresses
end
class Address < ActiveRecord::Base
belongs_to :store
acts_as_mappable
end
class Book < ActiveRecord::Base
has_many