Displaying 20 results from an estimated 2272 matches for "favorites".
Did you mean:
favorite
2006 Aug 11
2
User Favorites
Hi there,
I''m currently creating a simple (at least so I thought) structure of
user favorites. Basically users can add certain ''objects'' to their
list of favorites.
Here is my current structure (simplified)
class User
has_many :favorites
end
class Book
belongs_to :favorites
end
class Favorite
belongs_to :user
has_one :book
end
The table favorite just has a two fields...
2006 Jul 10
18
Deleting join association of has_many :through
I''m trying to use has_many :through, since my join model deserves being
more than just an intersection table.
But when I try to break the association, the break only seems
"temporary":
Let''s say my two tables are Users and Colors, and the join model is
Favorites.
user = Users.find(1)
user.colors.length
>> 2
c = user.colors.first
>> #<Color:....>
user.colors.delete(c)
user.colors.length
>> 1
Now what do I do here to make this persist?
If I reload my page, user.colors.length == 2 again, and the old color is
still a part of the co...
2006 Jul 10
2
Polymorphic associations in reverse?
...ite
belongs_to :favorite
belongs_to :favorable, :polymorphic => :true
end
class User < ActiveRecord::Base
has_many :images
# Can be a favorite
belongs_to :favorite
belongs_to :favorable, :polymorphic => :true
# Has many favorite ''things''
has_many :favorites, :dependent => :destroy
has_many :favorite_images, :as => :favorable, :through => :favorites,
:classname => "Image"
has_many :favorite_users, :as => :favorable, :through => :favorites,
:classname => "User"
end
class Favorite &l...
2006 Mar 28
5
Rails 1.1 released
I haven''t seen a note here on the list, so in case anyone doesn''t
have their RSS reader glued to the relevant blogs...
http://weblog.rubyonrails.org/articles/2006/03/28/rails-1-1-rjs-
active-record-respond_to-integration-tests-and-500-other-things
Congrats to David and all the core team, and thanks for your
dedication and all the work. This release looks really solid and
2006 Jun 23
2
polymorphic challenge
...t.column :relationable_id, :string
t.column :created_at, :datetime
end
class Relation < ActiveRecord::Base
belongs_to :relationable, :polymorphic => true
end
class User
has_many :favorite_profiles, :as => :relationable, :class_name =>
"Relation"
has_many :favorites, :class_name => "User",
:through => :favorite_profiles
end
And nope Rails just does not like my wise plan by saying
"ActiveRecord::HasManyThroughSourceAssociationNotFoundError: Could not
find the source association(s) :favorite or :favorites in model
Relation....
2016 Jul 06
4
Permanently change default virsh editor
Hello, I found in the docs that I can change the editor I use on a per vm
bases with the following:
*EDITOR=$your-favorite-editor virsh edit $your-vm-name*
But how do I change it permanently so when I run:
*virsh edit $your-vm-name*
It defaults to my favorite editor (vim)?
Ref:
http://wiki.libvirt.org/page/FAQ
2007 Jun 14
1
Outlook 2003 - Disappearing favorite folders
Hello all,
I'm having an issue with Outlook 2003, where favorite folders seem to
disappear. Specifically, they are subfolders of the Inbox. The Inbox
favorite folder stays there without a problem. Any clues as to what the
problem may be? With the previous IMAP server (courier I believe) this
wasn't a problem...so it leads me to believe that Dovecot might be the
problem. I'm
2004 Apr 21
1
Symlinks and roaming profiles
Hi all,
Has anyone else had trouble (or not) with symlinks created in root
preexec scripts and roaming profile directories? I'm trying to add a
"shared links" director (symlink) to everyone's favorites, and I get
error loading profiles where a symlink loop is forming (ends up with
something like "cannot copy
xxx\profile\favorites\favorites\favorites\favorites\...."). The symlink
is OK when viewed from a console.
any ideas
Jim Potter
(haven't got exact details in front of me,...
2015 Sep 02
4
Redirected Folders not working for Desktop
Well, I've just added another directory to not make the redirected folders a the
root. And, Favorites and Documents do work.
Goog suggestion to check the Windows event viewer. I'll do that and get back
with what I find.
Thanks, --Mark
-----Original Message-----
> To: samba at lists.samba.org
> From: James <lingpanda101 at gmail.com>
> Date: Tue, 1 Sep 2015 08:14:06 -0400
>...
2008 Jan 24
6
Your "favorite" Asterisk application.
...ss, who loves to spend money for no particular reason, wants to go
proprietary, though. So I'm going to have to try to sell him. I figured
one place to start would be some of the really cool applications that
Asterisk has that -- generally, at least -- don't require licensing. Some
of my favorites are follow-me, meetme, voicemail-to-e-mail and
fax-to-e-mail. What are some of your favorite features/applications, be
ith native or third-party?
Thanks,
-Ken
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
2015 Sep 01
4
Redirected Folders not working for Desktop
I have a problem I've not been able to figure out. I'm using Samba4 as the
office AD/DC. I've set up the Redirected Folders policy to redirect Desktop,
Favorites and Documents to \\mail.hprs.local. I set this up months ago and it
works great for Documents and Favorites, but Desktop is not redirected (no Desktop):
$ ls -l /redirectedFolders/Users/thisuser/
total 16
drwxrwx---+ 10 thisuser users 4096 2015-08-25 13:08 Favorites/
drwxrwx---+ 19 thisuser users...
2006 Jun 26
1
Help with Wine programming.
.../webyog.com/faq/31_71_en.html (but it makes
no difference if we install under ../.wine/drive_c either). We would
like some help/hints to get every detail in relation to Wine
compability fixed - also with the new features of the program.
But let us try first to explain the the details
1) the 'favorites' feature. This is a folder tree in 'application
data' with plain text files. From the program menu you can build/edit
this folder tree and insert plain text file in there from the program's
editor component, or you can insert a file-URL to an existing file on
any drive that is mapp...
2008 Mar 13
2
Please vote for your favorite Wine-1.0 bugs...
The 1.0 release of Wine is tenatively scheduled for
the 15th anniversary of the project (roughly 1 June 2008,
if you take Dan Dulitz' message as the start of the project,
http://groups.google.com/group/comp.os.linux/msg/7f92abdf494ab8b3 )
Over the last six or so months, the wine developers have
identified 180 or so bugs as possibly being worth fixing
before the 1.0 release.
63 of the Wine
2007 Nov 09
1
Your favorite desktop wifi sip hardphone ?
Hi,
Which is your favorite desktop wifi sip hardphone ?
I'm looking for something like
http://www.mitel.com/DocController?documentId=19401 which could be easily
moved from one meeting room to another.
(In this specific case, finding an electrical plug to power a large desktop
phone is seen more relevant than finding an PoE Ethernet plug or using a
mobile handset.)
Which product would you
2005 Jan 25
0
Inconsistent ls behavior on smbmount'ed Windows shares
...G="ru_RU.UTF-8"
SUPPORTED="en_US.UTF-8:en_US:en:ru_RU.UTF-8:ru_RU:ru"
SYSFONT="latarcyrheb-sun16"
[root@vax ~]# mount -t smbfs -o
username=username/DOMAIN%password,iocharset=utf8,codepage=cp866 //computer/c$ /mnt
[root@vax ~]# ls -la /mnt/Documents\ and\ Settings/igord/Favorites/Reading/The\ Open-source\ PKI\ Book.url
-rwxr-xr-x 1 root root 226 ??? 10 2004 /mnt/Documents and Settings/igord/Favorites/Reading/The Open-source PKI Book.url
[root@vax ~]# ls -la /mnt/Documents\ and\ Settings/igord/Favorites/Reading/The\ Open-source\ PKI\ Book.url
ls: /mnt/Documents and Setting...
2015 Sep 03
0
Redirected Folders not working for Desktop
James,
First, I mis-spoke (typed?) in my previous message. Yes, my redirected folders
are set up as \\mail.hprs.local\Users\%username%, just like you say. (Note, I've
already been chastized about the .local thing -- too late).
I did examine the event logs. For Favorites, Document, Photos, etc. I have
Event 501 messages which say, "Successfully applied policy and redirected folder
"Favorite" to '\\mail.hprs.local\Users\obfuscate\Favorites'", etc. Great.
For the Desktop, I have Event 502,
Failed to apply policy and redirect folder &quo...
2006 Jul 02
1
prevent duplicate inserts with has_many :through ??
Does anyone have an efficient/elegant way to prevent duplicate inserts
when using a has_many :through relationship.
So I have something like this:
class User < ActiveRecord::Base
has_many :favorite_teams
has_many :teams, :through => :favorite_teams
end
class FavoriteTeams < ActiveRecord::Base
belongs_to :user
belongs_to :team
end
class Teams < ActiveRecord::Base
has_many
2009 Aug 24
1
Want to help Wine and prevent regressions in your favorite (downloadable) app?
Howdy all,
For Google Summer of Code, I worked on a project I called Appinstall,
which is basically an automated test framework for Wine. It works as a
simple shell script, that runs several independent tests of
applications, then parses the log files to make sure no applications
broke, or bugs were fixed. The tests themselves are written using
AutoHotKey (http://www.autohotkey.com).
The neat
2006 Apr 30
2
HABTM: Find sorted by number of associations
Hi,
I''ve been googling and searching the forums for some time
but can''t seem to find exactly what I''m looking for.
Suppose User HABTM Products (for example a favorites list). I would like to
construct a single query for finding Products ordered by the number of
Users that have flagged them as favorites.
Although I can construct the query using SQL a with a
SELECT products.*, count(products_users.user_id) FROM products
LEFT OUTER JOIN ... GROUP BY etc. -...
2011 Apr 19
0
Love wine? Here's a new way to find your favorites!
Hi, I never use blogs so I am not sure what I am doing =). But I had to share an amazing find! A friend of mine sent me a link to a new website that carries so many different wines---(that I can never find at my local liquor store)---its called ELEPHANTWINE.COM....I called the customer service number because I could not find my favorite wine..and the lady was soo nice and made a special order for