Displaying 20 results from an estimated 7000 matches similar to: "serialize array finder"
2008 Mar 04
4
Named collection forward fetching
Hello,
I''m getting an "NoMethodError" traversing a named collection. Let me
explain
I have a named collection called best_friend in a class called user
def self.best_friend
find :all, :conditions => "designation = ''Best Friend''"
end
and if i do current_user.best_friend everything works great, I can pull
up the user''s name as
2010 Apr 02
6
App_Controller and partial issues with has_many through
I have a User model, a Post model, and an Interest model:
User has_many posts through interests
User has_many interests, dependent destroy
Post has_many users through interests
has_many interests, dependent destroy
Post has_many interests
Interest belongs to Post
Interest belongs to User
Application_Controller is as follows:
class ApplicationController < ActionController::Base
before_filter
2007 May 03
4
[patch] Mac Universal Binaries
On 5/2/07, Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> wrote:
> Well, I don't quite understand why AC_C_BIGENDIAN and the solution
> you're proposing is likely to break other big endian machines (the ones
> that don't have __BIG_ENDIAN__). Can you send a patch that addresses
> that (i.e. still uses AC_C_BIGENDIAN when it works)?
It is not that AC_C_BIGENDIAN
2006 Aug 16
3
calculate method is gone once I use ''find''?
Could someone please explain why this works:
current_user.accounts.sum(:balance)
But not this:
current_user.accounts.find_all_by_active(true).sum(:balance)
For the latter Rails tells me sum is an undefined method. It seems like
I lose the ActiveRecord methods when I call ''find''?
This (simpler) does not work either:
current_user.accounts.find_all.sum(:balance)
Thanks!
--
2007 Dec 03
18
Need help mocking this out
Let''s say you''re using the restful_authentication plugin.
You have a model called articles. On the index action of the
articlescontroller you simply want to spec out that it''ll scope the results
to the ownership of the current_user.
It should NOT include any articles other than the articles that user owns.
How would you properly spec this out?
Thanks for the help!
2008 Sep 23
0
Questions on Active Record SQL type Finders & Dynamic Finder
Hi,
I understand there are total 11 types of key Options for finding a
record.
The all 11 valid keys for the options hash are :conditions,
:include, :order, :select, :group, :joins, :from, :limit, :offset,
:readonly, and :lock.
We also have Dynamic Finders for the same. e.g. ... find_by etc...
I would like to know, how many types of dynamic finders, Active Record
provides, to match all those
2015 Jun 17
0
macos finder error 36 when copy folder to samba 4.2.2
Am 17.06.2015 um 09:11 schrieb Sascha Kasch:
> dear list,
>
> encountered a problem and hopefully someone more experienced might
> help me.
> problem is with macos 10.9.5 and finder.
>
> i want to copy a simple folder with subfolders and without any files
> to my samba share.
> files alone work flawlessly.
>
> when i drag a folder from desktop to the share the
2006 Apr 13
1
FerretHelper module and Ferret Finder utility
Hi
I''ve written ferret_helper.rb (FerretHelper module) containing wrapper
methods
for converting PDF, HTML, Open Document and Microsoft Word files to
plain text
for the Ferret index analysers.
To help test it I wrote a simple ff.rb (Ferret Finder) command-line
utility to
index and search document files.
You can download the code at http://www.methods.co.nz/ff/
Cheers, Stuart
--
2015 Jun 16
0
macos finder error 36 when copy folder to samba 4.2.2
dear list,
encountered a problem and hopefully someone more experienced might help me.
problem is with macos 10.9.5 and finder.
i want to copy a simple folder with subfolders and without any files to
my samba share.
files work flawlessly.
when i drag a folder from desktop to share the finder errors out with
error -36 but creates all folders.
same happens when i copy an empty folder from the
2006 Apr 13
2
Automatic finder
It looks rails automatically creates a "finder" method on models that have a "belongs_to". So I tried this in the console:
c = Category.find(2)
chunks = Chunk.find_by_category(c)
chunks is always returned as an empty array. When I know have some chunks with a category_id of 2.
Should the find_by_category do what I think it should be doing or am I completely off base?
2015 Jun 18
0
macos finder error 36 when copy folder to samba 4.2.2
On Thu, Jun 18, 2015 at 09:51:28AM +0200, Sascha Kasch wrote:
> Am 17.06.2015 um 14:39 schrieb Sascha Kasch:
> >Am 17.06.2015 um 09:11 schrieb Sascha Kasch:
> >>dear list,
> >>
> >>encountered a problem and hopefully someone more experienced might help
> >>me.
> >>problem is with macos 10.9.5 and finder.
> >>
> >>i want to
2006 Jan 20
1
Tiger 10.4.4 Finder hangs browsing over VPN
On Friday, 29 Jul 2005, Brian Daniels wrote under [Samba] Samba, VPN,
and Mac OSX 10.4.2:
> After upgrading to Tiger, [our Mac OS X systems] still work fine
> when on our LAN. But if they try to connect to a [Samba 3.0.10-1]
> share over the [IPsec] VPN, Finder hangs. The Mac logs the
> following messages in /var/log/system.log during the hang:
>
> Jul 29 09:59:46
2006 Nov 06
2
Eager Finder SQL
Hi, I just uploaded a Rails plugin that allows you to specify custom
SQL when doing a find with associations (AKA eager loading).
One of the problems I encountered when implementing the Chacha
Underground (http://underground.chacha.com) was being able to use
queries provided by the DBA to efficiently get all the informaion I
needed to render a page. In some cases, I needed to go two or three
2011 Jul 30
22
Question about Helpers
Studying the RoR 3 Tutorial book by Michael Hartl
and on page 345 there''s the code inside the SessionsHelper:
_________________________________________________________
module SessionsHelper
def sign_in(user)
cookies.permanent.signed[:remember_token] = [user.id, user.sault]
self.current_user = user
end
end
__________________________________________________________
What is the purpose
2003 Feb 16
0
os X finder wonkiness
i would bet anything someone's already asked and had this answered, but
since the archives of these listss aren't searchable, and since i
couldn't find the info in the docs or elsewhere on net, here goes:
i've got 3 shares active on a debian box, accessing them fine from an
OS X g4 and 2 win 98 boxes
(the were set up and configured via the samba web admin tool from a
browser
2005 Mar 30
0
Mac OS X Finder hangs when accessing Samba server
Hello,
I'm hoping someone may be able to steer me in the right direction, as
I've searched the archives with no joy.
Configuration:
Server: Fedora FC3, kernel 2.6.9-1.667, samba-3.0.13-1
Client: Mac OS X Panther 10.3.8
The Samba server works fine with a Windows 2000 client on the same LAN.
With Panther I am seeing the connection drop during transfers and/or the
Finder freezing
2016 Apr 27
0
"stuck" new directories and Mac Finder hangs after upgrade to 4.2.11
On Tue, Apr 26, 2016 at 01:25:45PM -0700, tackyy wrote:
> We’re a 99% Mac shop running El Capitan (10.11.4). We’d been running
> Samba 4.2.3 on FreeBSD 10.0/ZFS for a while with minimal problems. I
> recently upgraded to 4.2.11 because of Badlock. Now when users
> create a new folder then try to move files into it the Finder hangs,
> the user loses their connection to the server and
2011 Apr 07
0
Hypercluster Finder Function in R
Dear R Users
I am looking at carrying out Multivariate Supervised Discretization on a
set of continuous attributes to determine cut off values on each attribute
which would allow best explanation of a binary outcome variable.
I understand that there is an algorithm for doing this (The HyperCluster
Finder Algorithm from the paper -Muhlenbach F., & Rakotomalala R. (2002).
Multivariate
2007 Nov 23
2
Create my own dynamic "finder" method?
Hi all
I''m having an authorization method that looks like the following:
def user_requests_authorization_to(right_name)
...
end
I find it boring to always use
user_requests_authorization_to(''EDIT'')
user_requests_authorization_to(''CREATE'')
etc., so I thought I could implement my own dynamic method, like the
dynamic finders! Instead of the calls