Displaying 19 results from an estimated 19 matches similar to: "Inserting rows into linking table"
2006 May 19
2
Problems with belongs_to table joins
I am looking for a little assistance with a problem I have with a simple
table join using Rails. I am a relative newbie to both Ruby and Rails so
any help would be greatly appreciated . I have two tables products and
product_formats.
create table products (
id int not null auto_increment,
title varchar(100) not null,
product_format_id integer
2010 Oct 06
1
2 way intercom recommendation for restaurant kitchens
Greetings,
I need a 2 way intercom for separate kitchens to communicate without
having to walk back and forth.
The speaker has to be loud but clear, not distorted. Sometimes the
kitchens can be noisy.
It needs to be easy to use.
It needs to be easy to clean.
It would be nice if it used POE.
Eventually I would like the kitchens to be able to dial different parts
of the restaurant when I
2006 Jan 10
15
KISS and DRY? Not even close!
Hi all,
After working on my first rails app and having handed over some very
sophisticated coding from a lot of you guys. My app does what I want it to
do, but I''m no where near the end yet, and it seems that the KISS and DRY
objectives already went down the drain.
It could be lack of knowledge, only doing Ruby on (and) Rails for a month, but
I''m stuck on the following:
2005 Nov 15
4
Fosdem : Developers Room, Presence
hi everyone,
This mail will mostly interest europeans Rubyists/Railists, but others
are welcome to read it, answer and participate too :)
In next February the Sixth Fosdem (Free and OpenSource Developers''
European Meeting) will be held in Brussels, Belgium. Like each year
there is some special rooms for projects/communities (mozilla, drupal,
kde, gnome, python, openbsd, perl, linux,
2009 Jun 02
9
XML::LibXML::Reader
is there anybody who knows how we can get child values using libxml
(Reader class)
def xml_import_to_brands
require''xml''
reader = XML::Reader.file(''c:/brands.xml'')
.
.
.
2010 Dec 13
22
OT: programming language for morons (newbie friendly language in Open Source world)
Hi folks
I have more than 12 years experience with UNIX system administration,
but I am too stupid for programming. My only programming experience is
shell scripting. I tried to learn Java, but don't understand it
because it is too complicated for my limited brainpower.
What programming language should I learn?
A friend said that C-Sharp (Mono) is very simple. Is this true?
cheers Sven
2009 Jul 23
11
Problem with named_scope
Here are my scopes:
default_scope :order => ''posted_on DESC'', :conditions => { :status =>
''visible'' }
named_scope :positive, :conditions => { :rating => ''positive'', :status
=> ''visible'' }
named_scope :neutral, :conditions => { :rating => ''neutral'', :status
=>
2007 May 30
2
newb trying to figure out ActiveRecord relationships
3 tables. item, brand, commercial
item
--------
id
name
brand_id
name
brand
---------
id
name
commercial
----------
id
item_id
The idea is that a commercial will have one item.
each item will have brand.
and a brand may have zero to many items.
I can''t figure out how to make the relationships for my models.
Eventually, i''d like to be able to show a brand name from a
2008 Jul 22
2
ActiveRecord Associations issue
Hello all and thank you for reading this message.
I am new to RoR, and ruby too, but i am quite excited about it.
I am developing a RoR project and with active record associations in
the following
manner
# Tables (all tables have only one record)
CREATE TABLE `webcars_development`.`cars` (
`id` int(11) NOT NULL auto_increment,
`model_id` int(11) NOT NULL default ''0'',
2012 Mar 28
1
collection_select
_form.html.haml
= f.label :Select_Brand, "Select_Brand<em>*</em>".html_safe
= collection_select(:brand_name, :brand_id, Brand.all, :id, :name,
:prompt => "Select a Brand" )
show.html.haml file
%table
%tr
%td
Brand_Name :
%td
= @message.brand_id
After writing this code I am not able to see the brand name. Its not
giving any error but
2006 Aug 09
1
Migrating a Field to External Model
I have a model Product with an attribute ''brand''. Currently it is a
simple attribute, however, I am migrating it to a separate model
Brand so that I can have other attributes with each brand. I created
the the model and created and ran the migration to create the new
table. So far so good. Then I created a separate migration to
transfer the data. The up method
2005 Nov 30
8
nested attributes with update_attributes()
Hi,
I am trying to use the update_attributes on object with nested
attributes and I am getting the following error:
ProductPrice expected, got HashWithIndifferentAccess
Here''s the situation (simplified):
class Product < ActiveRecord::Base
belongs_to :productPrice
end
class ProductPrice < ActiveRecord::Base
has_one :product,
:dependent => true
2015 Mar 09
4
endian problems on FreeBSD?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Greeting-
I have tinc on the following:
2 - x86 FreeBSD boxes
1 - ARM FreeBSD box
1 - x86 Macintosh
All the x86 boxes can speak with each other, but none of the x86 boxes
can speak with the ARM box.
The ARM box says:
[root at beaglebone /usr/local/etc/tinc/wdl]# tincd -D -n wdl
tincd 1.0.24 (Mar 8 2015 14:55:57) starting, debug level 0
2015 Feb 26
6
Back with my UID problems
On Wed, 25 Feb 2015 19:48:07 +0000
Rowland Penny <rowlandpenny at googlemail.com> wrote:
> As for creating users & groups, samba 4 comes with 'samba-tool' for
> more info on this, run 'samba-tool --help' or 'samba-tool user add
> --help', you can also run 'man samba-tool'
>
> Rowland
>
Nothing in the samba-tool man page speaks to
2004 Jan 09
2
Re: Asterisk-Users digest, Vol 1 #2413 - 13 msgs
>
> --__--__--
>
> Message: 1
> From: Terence Parker <terence@parker.com.hk>
> Date: Fri, 9 Jan 2004 11:25:23 +0800
> To: asterisk-users@lists.digium.com
> Subject: [Asterisk-Users] Problem registering FWD
> Reply-To: asterisk-users@lists.digium.com
>
>
> --Apple-Mail-1-822243116
> Content-Transfer-Encoding: 7bit
> Content-Type: text/plain;
>
2015 Feb 26
1
Back with my UID problems
On 26/02/15 22:35, John Yocum wrote:
> On 02/26/2015 02:31 PM, Brett Wynkoop wrote:
>> On Wed, 25 Feb 2015 19:48:07 +0000
>> Rowland Penny <rowlandpenny at googlemail.com> wrote:
>>
>>> As for creating users & groups, samba 4 comes with 'samba-tool' for
>>> more info on this, run 'samba-tool --help' or 'samba-tool user add
2015 Mar 10
2
endian problems on FreeBSD?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, 10 Mar 2015 02:10:51 +0100
Guus Sliepen <guus at tinc-vpn.org> wrote:
> If that was not the problem, then another issue might be the version
> of OpenSSL on your Beaglebone not supporting the Cipher or Digest
> algorithms that you are using.
>
This seems the most probable from the various tests and key changes and
so forth
2015 Feb 26
3
Back with my UID problems
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, 26 Feb 2015 22:41:58 +0000
Rowland Penny <rowlandpenny at googlemail.com> wrote:
>
> Try 'samba-tool user add --help'
> All the info you require is there.
>
> Rowland
>
Still fail:
Used pdbedit to remove the previous user wynkoop
used samba-tool to add user wynkoop with specific UID and GID
I then
2011 Sep 15
1
TOP and Rayman 3 wine 1.3.28
Hello Everyone,
I just wanted to let you all know that Rayman 3 hangs just after
starting a new game with no output on the terminal.
Also Tales Of Pirates Online crashes randomly sometimes after
5 mins sometimes after 8 hours but it crashes.
Here is the output from the terminal.
preloader: Warning: failed to reserve range 00010000-00110000
preloader: Warning: failed to reserve range