Displaying 20 results from an estimated 3000 matches similar to: "Generic SingleTable inheritance"
2008 Dec 17
9
Rails 2.2.2 and globalize - undefined method `render_file' for class `ActionView::Base' (NameError)
Looks like globalize (1.2) is not compatible with rails 2.2.2. I am
getting:
''
=> Booting Mongrel (use ''script/server webrick'' to force WEBrick)
=> Rails 2.2.2 application starting on http://0.0.0.0:3003
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Starting Mongrel listening at 0.0.0.0:3003
** Starting Rails with development environment...
2006 Jul 02
1
ActiveRecord''s has_many, allways fetched from db?
Hi all,
say I have a
class Container
has_many :items
end
and
class Item
belongs_to :container
end
Now if I fetch a container from the db
cont = Container.find :first
and then call
cont.items
1000 times, does this result in 1000 db queries(for the items of the
container)?
Thanks
Clemens
--
Posted via http://www.ruby-forum.com/.
2006 Jul 02
10
Use Rails or PHP?
I''m new to RoR and have used PHP. I want to develop a personal
organizer that allows me to add lists (tables) and search them. The
ActiveRecord concept seems to allow me to set up something that works
with an existing table, but I want the ability to add tables without
programming. I know how to do this in PHP and I can put the SQL into
queries in RoR, but does ActiveRecord let
2006 Aug 06
2
ActiveRDF and Rails
Hi,
I tried out the ActiveRDF library for accessing RDF data from Ruby
and it worked
very well. Now I''m interested to combine ActiveRDF and Rails by using
e.g. the YARS
data-store instead of ActiceRecord in a RoR project. For this I
downloaded the
''browserdf'' example. Now I need some help or instruction to get this
example work
under Rails. May I have to adjust
2006 Jul 08
9
How to handle dynamically columned tables in rails
I want to build an application that lets me (the end user accessing a
web page) design a simple list with columns and add records. E.g., if
the end user says I want a table that has a list of songs, he can create
a list (title, date, artist, label) and then make another list of, e.g.,
books on his bookshelf with the necessary columns (title, author,
pub_date, shelf).
The end user
2018 May 02
0
Generating function definition for function that's only called during unwinding
Hmmm... It seems like I should check out how the UseList on Value (and its
child BasicBlock) work.
On Tue, May 1, 2018 at 8:34 PM, Keith Wyss <wyssman at gmail.com> wrote:
> Hi,
>
> I'm trying to understand how clang keeps track of which declarations are
> called within a translation unit and decides to codegen their definitions.
>
> DeclBase.h has a markUsed to keep
2018 May 02
3
Generating function definition for function that's only called during unwinding
Hi,
I'm trying to understand how clang keeps track of which declarations are
called within a translation unit and decides to codegen their definitions.
DeclBase.h has a markUsed to keep track of ODR use, and I think that the
decl can be found from the symbol table via ASTContext.h (for example
looking up a template via GetQualifiedTemplateName -> getAsTemplateDecl ->
setIsUsed ). This
2006 Apr 22
0
Is it possible to have one class containing tw
Hello fellow Rail-builders,
Is it possible to declare one class that includes two polymorphic
fields as such:
class Mark < ActiveRecord::Base
# attribute: value, :string
belongs_to :markable, polymorphic => true
end
class Property < ActiveRecord::Base
has_one :name, :as => :markable
has_one :value, :as => :markable
end
?
Based on what I know of the underlying
2002 Apr 18
1
Error handling with rsync
Since I uses rsync in a perl script I'd rather prefer to get error codes from
rsync instead of messages at STDOUT. Is there an option which tells rsync it
should return error codes?
Is this possible or do I ask something ridiculous? How is the error handling
done when rsync can't download a file?
Should I better switch to the rsync library, is there a perl interface?
O. Wyss
--
Author
2008 May 29
3
Shipping?
Why are there tutorials on everything having to do with rails EXCEPT
on calculating shipping costs for a shopping cart? there are 10 or so
blog posts about the "shipping_gem" or "active_shipping" but no real
details like how one might get the information from a form and then
pass the cost into the total for checkout. Does anyone know of a
tutorial i might have missed in the
2006 Apr 22
3
question about Rails with non-relational databases
I''m very uncomfortable with Rails right now because it seems to be totally
wedded to relational databases. I want to develop my data and data
structures in Tinderbox - a hypertext data development system from
Eastgate systems (http://www.eastgate.com/Tinderbox/), export the data
and datastructures, massage to some format, and then use with a dynamic
frontend that builds a web page
2011 May 25
2
g_dbus_connection_real_closed when starting lightdm
Hi,
I made the switch from KDE4->XFCE, and because gdm takes more time
than xfce to start I would like to replace it with lightdm.
I installed lightdm, set it as default display manager and configured
the gtk greeter.
However, when I start I only get a black screen (x running) and
nothing else happens.
When I start it as root with the --test-mode argument, I get the
following message:
lightdm
2010 Sep 20
10
Tinc performance on a Dir-300
Hi,
we are using Tinc in our Freifunk Network in Oldenburg for internode
connections over the internet. So Tinc is running on OpenWrt 10.03 on Dlink
Dir-300 Routers.
We all have enough internet bandwith (1,6 MB/sec and more) but we only get a
maximum speed of ~350KB/sec between two tinc nodes because then tinc uses 99%
of the cpu.
Is it possible to get more Speed with tinc on this machines?
2009 Dec 25
5
[Bug 25795] New: windows not redrawn after resize
http://bugs.freedesktop.org/show_bug.cgi?id=25795
Summary: windows not redrawn after resize
Product: xorg
Version: 7.4
Platform: x86-64 (AMD64)
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Driver/nouveau
AssignedTo: nouveau at lists.freedesktop.org
2005 Aug 22
3
Cannot compile 3.0.x on Solaris 9
Dear list,
is there anyone who successfully compiled a Samba 3.0.X on a Solaris 9 box?
I tried severl versions of Samba 3.0.* on five rather differently
configured Solaris 9 boxes (Sparc) and ALWAYS get a build error
on dynconfig.c
Sometimes it seems to be a missing ldap-preprocessor define (which is
protested by the compiler although I configured --with-ldap=NO),
sometimes it is a header file
2006 Jul 18
7
Port scan from Apache?
Hi everyone,
today I got an e-mail from a company claiming that my server is doing
port scans on their firewall machine. I found that hard to believe so I
started checking the box.
The company rep told me that the scan was originating at port 80 with
destination port 8254 on their machine. I couldn't find any hints as to
why that computer was subject to the alleged port scans. Searching
2006 Jul 17
2
DB Admin Console
Over the past few months, I''ve developed an administrative console for
databases in the process of solving other problems.
At the moment, the state of development is:
* Going to /admin_panel/model will bring you to a list of items in the
model:
* Supports acts_as_list via drag/drop sorting
* Supports "activated" via an activated/deactivated button
* Supports basic
2012 Feb 02
1
[LLVMdev] Disjoint types after reading several modules
On 2/2/12 2:32 PM, Duncan Sands wrote:
> On 02/02/12 14:25, Clemens Hammacher wrote:
>> On 2/2/12 1:51 PM, Duncan Sands wrote:
> ...
>>> what do you mean by "copied over to the main module"? If you want to add
>>> additional IR to the main module then you should link it in using the
>>> linker.
>>
>> I think that the linker would indeed
2018 Nov 17
2
Cannot connect when using BindAddress
Hi there,
Thanks for tinc, firstly. It's awesome. Now, I've found that if I specify:
BindAddress = 127.0.0.1 655
Then my tincd cannot make outbound connections (on attempting to
connect to another tinc daemon is receives 'Invalid argument').
Removing BindAddress fixes the issue. Unless I've misunderstood the
purpose of this option, is this a bug?
I'm running v1.0.35 on
2012 Feb 02
2
[LLVMdev] Disjoint types after reading several modules
On 2/2/12 1:51 PM, Duncan Sands wrote:
> On 02/02/12 13:30, Clemens Hammacher wrote:
>> On 2/2/12 1:15 AM, Chris Lattner wrote:
>>> I have to ask: why are you writing these modules out as separate bc files?
>>
>> I knew that someone would ask that ;)
>> We need to have separate modules during runtime. One of them contains the code
>> that is actually JIT