Displaying 20 results from an estimated 2000 matches similar to: "Replacement for "has_many ... counter_sql" in Rails 4.1"
2006 Jan 19
7
bug in has_many count?
I can submit a patch, but wanted to confirm I''m looking at this right...
The docs indicate that if you specify a has_many association with
:finder_sql, but no :counter_sql, it constructs the appropriate counter
sql by substituting the SELECT clause.
But has_many_association.rb doesn''t seem to do that -- it just passes
Base#count_by_sql the finder_sql, which doesn''t
2005 Sep 10
4
has_too_many
Assuming you have Person that has_many :messages, what will it happen if it
has 10000 messages?
Will rails attempt to initialize @person.messages with 10000 rows from
database? If that is the case, is combining finder_sql and counter_sql the
common practice to avoid this?
Bogdan
_______________________________________________
Rails mailing list
2014 Apr 06
0
collection_check_boxes with has_many through: association Rails 4
I am trying to list all the categories a user can be interested in with
check boxes so that a user can submit these interests through my join table.
collection_radio_buttons works with a simple has_many, belongs_to
association:
<%= collection_radio_buttons(:listing, :category_id, Category.all, :id,
:name do |b| %>
<%= b.label { b.radio_button} %>
<%= b.text %>
2012 Aug 21
1
blf-crypt
Hi
The blf-crypt password schema mentioned in the docs could be a solution to my auth problem. However, the docs state that actual support depends on the glibc. Mine apparently doesn't.
Does support depend on the glibc's version (mine is 2.15-r2)?
Maybe someone with access to a box with a good enough glibc could do the following and post the hash for the plain password "test"?
2014 Apr 11
0
Rails 4.1 activerecord_relation conversion to array problem
After I upgraded from rails 3.2 to 4.1 I am getting this error
below.
I researched that Rails 4.1 requires a conversion of an
activerecord_relation to an array using to_a. I did use to_a but looks
like rails is doing a select count behind the scenes. Do you know how to
fix this?
def index
order_type = params[:order_type]
@oh = OrderHeader.select("orders_header.*, users.username,
2014 May 28
0
Sharing Rails 4 session with a Rails 4.1 App
Hello Folks,
I'm curious if it is possible to share a Rails 4 session with a Rails 4.1
application with the same secret key base on the same domain name. This
works with Rails 4 to Rails 4 but it appears that my cookies are being
encrypted differently between the two versions. Any ideas?
Jordan
--
You received this message because you are subscribed to the Google Groups "Ruby on
2014 Apr 26
0
Ruby on Rails 4.1 - Random SWF backgrounds in layout
Hi Everyone, this is my first post on Ruby on Rails, I've managed to get up
and running with Rails 4.1 on FreeBSD with Nginx and Ruby 2.1.1.
My issue is this:
I have a folder located at /public/swf/ that contains numerous swf files I
want to load as a background for every page of my site. I've successfully
created a controller with a randomize method and a corresponding view that
2014 May 15
0
composite primary key - Rails 4.1
Hi,
I am facing issue with composite primary key
In my gem file I have the below entries -
gem 'rails', '>= 4.1.0.rc2'
gem 'mysql2'
gem 'rb-readline', "~> 0.5.1"
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'spring', group: :development
gem 'bcrypt', '~> 3.1.7'
gem
2014 Apr 13
0
Rails 4.1 secrets
We are just playing with our first 4.1 app and are getting the following
error (Missing `secret_key_base` for 'production' environment, set this
value in `config/secrets.yml`)
googled around a bit and are struggling a bit with this one. tried rake
secret but not sure where to put the secret etc
Steven
--
You received this message because you are subscribed to the Google Groups
2003 Dec 17
3
friday entertainment
Sometimes people call it "Magic Lubricant". Sometimes - "Power
Bottle".
Why?
An amazing erection WITHING SEVERAL SECONDS is guaranteed to you!
Double-strengthed orgasm and full satisfaction... I guess this is
excatly what are waiting from sex!
Your easy-to-use solution is here: [1]http://www.ghkp.us/vpoil/?utopia
-----
Link below is for that people
2011 Sep 14
1
Which dovecot-antispam with dovecot 2?
Hi
I'm a little confused as there are two repos for the dovecot-antispam plugin.
Eugene's hg repo is explicitly labeled "for Dovecot 2", but the Johannes' git
repo has commits later in date:
hg: http://wiki2.dovecot.org/Plugins/Antispam
git: http://git.sipsolutions.net/?p=dovecot-antispam.git
I guess the unrelease hg code ist the one for Dovecot 2, but what is
2011 May 22
3
dovecot-antispam dependencies
Hi
There's currently a version block for the dovecot and dovecot-antispam packages in Gentoo. Dependencies indicate that dovecot-2.0.11 does not accept dovecot-antispam-1.3. Is this correct or should it work? If not: How about the current rc of version 1.4?
Cheers, -sven
2011 Mar 08
3
Jet40 engine and I don't get along.
john at john-GA-MA78LM-S2H:~$ winetricks
Executing wine /home/john/.cache/winetricks/jet40sp8_9xnt.exe
fixme:setupapi:extract_cabinet_file awful hack: extracting cabinet "C:\\users\\john\\Temp\\IXP001.TMP\\Jetsetup.CAB"
err:ole:TLB_ReadTypeLib Loading of typelib L"C:\\Program files\\Common files\\Microsoft shared\\dao\\dao2535.tlb" failed with [u][b]error 2[/b][/u]
Install of
2012 Nov 10
1
Jian-Feng Mao wants to share new pictures with you
Zoosk
Hi , Jian-Feng Mao sent you an invite on Zoosk.
[1]View Invite
This message was sent by a Zoosk user who entered your email address. If
you'd prefer not to receive emails when other people send you emails through
Zoosk, [2]click here
You have received this message at the email address: [3]r-help at r-project.org
Copyright ? 2007-2012 Zoosk, 989 Market St, San
2012 Dec 07
1
Error using constrOptim in constraint definition
Hello,
I'm trying to run constrOptim. It returns to me an error about the fact that constraints arguments (ui and ci) are non compatibles:
> optout= constrOptim(startparams, f=ImpulseSS, grad=grImpulse, ui=UI, ci=CI, data=gexp[k,], t=t)
Error in ui %*% theta : non-conformable arguments
I would like to point out that I can calculate that product in the command line:
> UI %*%
2008 Jul 09
1
loverays invites you to join Zorpia
Hi speex-dev!
Your friend loverays from , just invited you to his/her online photo albums and journals at Zorpia.com.
So what is Zorpia?
It is an online community that allows you to upload unlimited amount of photos, write journals and make friends. We also have a variety of skins in store for you so that you can customize your homepage freely.
Join now for free! Please click the following
2013 Oct 24
1
Empty Mails from MAILER-DAEMON with Dovecot-Antispam and DSPAM
Hallo,
I've installed the dovecot-Antispam extension to my dovecot IMAP
installation in conjunction with DSPAM.
But when moving Mails from e.g. INBOX to Spam or vice versa, empty mails
from MAILER-DAEMON appear after the original mail has been moved.
This happens using Thunderbird 17esr, K-9 Mail on Android and Apple Mail
(Mountain Lion). (Perhaps also when using a Webmail IMAP client)
2006 Apr 20
3
has_many :through with has_many/has_many join models
It seems that using a join model that joins with two has_many''s will
fail to generate proper SQL
class StudentSemesterRecord < ActiveRecord::Base
belongs_to :semester
has_many :discipline_records, :through => :semester
end
class Semester < ActiveRecord::Base
has_many :student_semester_records
has_many :discipline_records
end
class DisciplineRecord <
2014 Apr 21
0
Trying to get DSpam+Dovecot working with Postfix and local/virtual domains
Hi,
I'm hoping that someone might be able to help, as I've been going in
circles with trying to get the right configuration done here. I'm also
not sure whether this is more of a Dovecot or DSpam question, so I'm
posting the same to both mailing lists.
My goal is to have a mail setup that is as follows:
[Incoming email] --> [Postfix] --> [Amavis] --> [DSpam] -->
2011 Feb 27
4
Is winetricks sending reports to the developer?
"Setting Windows version to winxp
Executing early_wine regedit c:\winetrickstmp\set-winver.reg
Install of msi2 done
You gave the --optin option, so reporting 'msi2' to the winetricks maintainer so he knows which winetricks verbs get used and which don't. Use --optout to disable future reports.
winetricks done.
"
Not sure what this is supposed to be. Is it saying that the