Displaying 20 results from an estimated 200 matches similar to: "Bug with table_name_prefix?"
2013 Mar 07
0
custom table_name for table users with devise
Hi
for my app, I have several tables for users (franceusers, belgiumusers,
...) and I would like to use one or another depending on domain
I tried with table_name_prefix and table_name but it seems to not work
class User < ActiveRecord::Base
rolify
# Include default devise modules. Others available are:
# :token_authenticatable, :confirmable,
# :lockable, :timeoutable and
2006 Jun 16
3
Does HABTM support non "id" FKs?
Quick question. Say I have a geographical database with counties and zip
codes where counties have and belong to many zip codes.
zip_codes (id, zip_code)
counties (id, name)
When I create the association table, the Rails way says to do the
following: counties_zip_codes (county_id, zip_code_id).
However, given that zip_codes.zip_code is itself a candidate key, I
would much prefer to do the
2006 Aug 06
1
creating hash table, how do i? please help
hi, i have a noob question. how do i create a table but add additional
fields? for example..
i have a total_table of total, county, and town where total_table
inherites county_id and town_id from my town_county table where
county_id has_many towns. in my view, id like to go through the hash
like this
table total_table
for total_table.county
{
print total_table.county
print
2006 Aug 11
0
habtm in a standalone ruby script broken?
Hi,
i have a ruby script which uses the activerecord models of my rails
application. this is achieved with
$LOAD_PATH << ''...../availdb/app/models''
require ''rubygems''
require_gem ''activerecord''
require ''host_downtime''
require ''host_scheduled_downtime''
And in .../app/models/host_downtime.rb:
class
2006 Aug 04
1
how to count totals for each unique name in a table?
hello, i am having trouble on how to implement this. i have a table of
doctor information where each doctor has a town and county field. i
would like to create a view that shows the amount of doctor_types in
each town. For example
if the user selects the ''General Doctors'' search button, a view like
this will show up. The next step would be for the user to select which
2007 Jun 19
2
sequence name prefix
In Postgres, I use different database schemas for each application, by
declaring, e.g.:
class ApplicationController < ActionController::Base
ActiveRecord::Base.table_name_prefix = "keywords."
end
I assumed that the sequence names were also prefixed with the database
schema names, e.g.
keywords.things_id_seq
But Rails 1.2.3 assumes the sequence is *NOT* in the same schema as the
2005 Dec 23
2
Bizarre problems with AJAX / missing variables
I''m having some really weird problems with an app I''m writing.
Everything is working as expected on my development machine (OSX,
Rails 0.14.4) but is cacking out with weird errors on the Textdrive
demo site (FreeBSD, Rails 1.0.0). It complains about missing
variables, with errors like this:
undefined local variable or method `rawcode'' for
2017 Mar 08
7
Up to date guide/information Sendmail SMTP Auth
Hello all,
I've been googling my brains out since yesterday looking for up-to-date
information on this matter, and have found information that is anywhere
from 15 to 5 years old. I'd really like some information that much more
up to date on the subject. Specifically configuring Sendmail SMTP
authentication (_no smart host stuff_).
I've got Sendmail 8.14 installed on a CentOS 7.3
2006 Mar 11
0
Using :joins - How to help Rails populate a list of records from a complex join
Hi,
Due to some performance issues, I want to use a custom query for a find method:
def find_in_state(state)
State.find :all,
:limit => 10,
:conditions => [''s.id = ? AND '' +
''s.id = c.state_id AND c.state_id = ? AND '' +
''c.id = col.county_id AND
2017 Mar 08
0
Up to date guide/information Sendmail SMTP Auth
On 03/08/2017 10:41 AM, Mark Weaver wrote:
> Hello all,
>
> I've been googling my brains out since yesterday looking for
> up-to-date information on this matter, and have found information that
> is anywhere from 15 to 5 years old. I'd really like some information
> that much more up to date on the subject. Specifically configuring
> Sendmail SMTP authentication
2017 Mar 08
0
Up to date guide/information Sendmail SMTP Auth
Try this article, "Outbound authentication for Sendmail."
http://www.databook.bz/?page_id=3097
I wrote this after setting it up on my own CentOS server.
On 03/08/2017 10:41 AM, Mark Weaver wrote:
> Hello all,
>
> I've been googling my brains out since yesterday looking for
> up-to-date information on this matter, and have found information that
> is anywhere from
2017 Mar 08
0
Up to date guide/information Sendmail SMTP Auth
On Wed, 8 Mar 2017, Mark Weaver wrote:
> Hello all,
>
> I've been googling my brains out since yesterday looking for up-to-date
> information on this matter, and have found information that is anywhere from
> 15 to 5 years old. I'd really like some information that much more up to date
> on the subject. Specifically configuring Sendmail SMTP authentication (_no
>
2017 Mar 08
0
Up to date guide/information Sendmail SMTP Auth
On Wed, 8 Mar 2017, Mark Weaver wrote:
> On 03/08/2017 11:00 AM, Paul Heinlein wrote:
>> On Wed, 8 Mar 2017, Mark Weaver wrote:
>>
>> > Hello all,
>> >
>> > I've been googling my brains out since yesterday looking for
>> > up-to-date information on this matter, and have found
>> > information that is anywhere from 15 to 5
2017 Mar 09
0
Up to date guide/information Sendmail SMTP Auth
On 03/08/2017 07:09 PM, Mark Weaver wrote:
> On 03/08/2017 06:42 PM, Paul Heinlein wrote:
> > On Wed, 8 Mar 2017, Mark Weaver wrote:
> >
> > > On 03/08/2017 11:00 AM, Paul Heinlein wrote:
> > >> On Wed, 8 Mar 2017, Mark Weaver wrote:
> > >>
> > >> > Hello all,
> > >> >
> > >> > I've been googling my
2017 Mar 08
4
Up to date guide/information Sendmail SMTP Auth
On 03/08/2017 11:00 AM, Paul Heinlein wrote:
> On Wed, 8 Mar 2017, Mark Weaver wrote:
>
> > Hello all,
> >
> > I've been googling my brains out since yesterday looking for up-to-date
> > information on this matter, and have found information that is
> anywhere from
> > 15 to 5 years old. I'd really like some information that much more
> up to
2005 Oct 29
0
Re: Multiple rails instances, single database
Thank you very much, James
Adam
On 10/29/05, rails-request-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
<rails-request-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> wrote:
> Date: Sat, 29 Oct 2005 09:23:05 +0100
> From: James Adam <james.adam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> Subject: Re: [Rails] Multiple rails instances, single database
> To:
2017 Mar 09
3
Up to date guide/information Sendmail SMTP Auth
On 03/08/2017 06:42 PM, Paul Heinlein wrote:
> On Wed, 8 Mar 2017, Mark Weaver wrote:
>
> > On 03/08/2017 11:00 AM, Paul Heinlein wrote:
> >> On Wed, 8 Mar 2017, Mark Weaver wrote:
> >>
> >> > Hello all,
> >> >
> >> > I've been googling my brains out since yesterday looking for
> >> > up-to-date information on this
2011 Apr 15
2
sti + namespace
I''m spidering historical weather data from various sources. I have a
WeatherStation class that is begging for an STI implementation: a
WeatherStation is associated with a specific weather service, and each
weather service has its own protocol for fetching weather data, but most
of the code is can be shared in the WeatherStation parent class. Ergo
STI.
But there are a lot of weather
2007 Sep 05
8
Hi..Guys new plugin again
Hi..
Guys new plugin again
Foreign Key Associations is a plugin that automatically creates
associations based on foreign-keys. The associations are created at
runtime-ie. as your ActiveRecord models are loaded-so they will always
be up-to-date.
For example, given a foreign-key from a customer_id column in an
orders table to an id column in a customers table, the plugin
creates:
2006 Apr 11
2
AR class names
hello all, quick question: how can I find out if a given string matches the
name of an ActiveRecord derived class?
thanks in advance
alan