similar to: Howto: show to tables on one page?

Displaying 20 results from an estimated 50000 matches similar to: "Howto: show to tables on one page?"

2007 Jan 19
0
Do transactions fail with polymorphic has_one relationships?
I have an AR::Base descendant with a complex object graph beneath it, like so: ArtisanQuoteInput has_one QuoteInput and then QuoteInput has several objects attached to it. Note that the relationship between ArtisanQuoteInput and QuoteInput is polymorphic, so the relationship in A is written has_one :quote_input, :as => :program_quote_input If @artisan_quote_input is an instance of
2010 Apr 13
5
How to check if a parent has children?
What is the new way to check if a parent has child items? In rails 1.2.6 I did this: if @client.has_line_items? Client being the parent and line_items the children. Now that I have upgraded to rails 2.0.1 (on my way to current :-) ) I am getting this message: undefined method `has_line_items?'' for #<Client:0x7f3b093b01a0> How should I format the query now? Regards, Paul
2020 Nov 17
0
can't delete recursive DNS entry
Dear Michael How have you created the subdomain? to look it up you have to exchange the @ with the name you want to see samba-tool dns query drago briesebaer.intern intern ALL and further down than: samba-tool dns query drago briesebaer.intern briesebaer.intern ALL Mani On 17.11.2020 07:36, Michael Thiemann via samba wrote: > Due to a mistake I created a subdomain with the name of the
2020 Nov 17
2
can't delete recursive DNS entry
Due to a mistake I created a subdomain with the name of the domain itself. In my case the domain is briesebaer.intern and I created the subdomain briesebaer.intern. Using DNS RSAT Tool I see under briesebaer.intern the subdomain intern and then a recurrence of the whole domain. That means: under intern there is briesebaer and all of the dns query beneath. The query shows the Name=intern
2020 Nov 17
2
can't delete recursive DNS entry
Dear Mani The subdomain was created using the DNS RSAT Tool. Focus was on briesebaer.intern and with a right cllick I choose to create a domain. There I gave the new domain the name briesebaer.intern. After this it was as described before. This are the results of the DNS Lookups you requested. root at DRAGO:~# samba-tool dns query drago briesebaer.intern intern ALL -U administrator Password for
2020 Nov 17
0
can't delete recursive DNS entry
Interesting........... I tried the same; with the same result: my domain looks ( according samba-tools) like a copy from my domain in my domain, but the RSAT DNS tool (win 7 version) is showing "intern" and there are no items to show. The Active directory Explorer from Sysinternals shows it as "DC=briesebaer.intern;DC...." but no dnsProperty or dnsRecord........... It is
2006 Feb 24
2
how to better generalize a tree?
first some background info: I have a blog application that has a comments table with the following columns: id parent_id post_id created_at body here''s my model: class Comment < ActiveRecord::Base belongs_to :post acts_as_tree :order => ''created_at'' def print_children (options={}) before = options[:before] ? options[:before]
2006 Apr 27
5
ERb on he command line re: Ruby For Rails book
Hi, I am working thru the Ruby for rails book. On page 30 David Black talks about running erb from the command line i.e. $ erb erbdemo.rb just as you would a normal ruby prog ($ ruby erbdemo.rb) but when I try to do this I get command not found. How do I make this work? I am running Linux (Ubuntu Breezy) Regards, Paul
2006 Jul 19
6
Howto: Check_box with a variable (no model)
Hi, I would like to put a checkbox on a form where the input field is a variable rather than a field in a model. The normal way (with a model) would be: <%= check_box(''client'', ''accept'', {}, "1", "0") %> But since accept is a variable @accept and model client will not be there, how do I make a check box work? Regards, Paul
2011 May 31
1
shared folders "invisible" on new setup
Dear list, I hope this is not an old issue, but I couldn't find a solution even after google'ing quite some time. I try to migrate our institute's mail server (~200 users) from an old cyrus-based Mac installation to a new machine (NetBSD, dovecot 2.0.13). Everything went quite smoothly so far, but we are used to have "shared folders" ("public" folders in dovecot)
2007 Oct 16
8
nfs-ownership
Hi. I have created some zfs-partitions. First I create the home/user-partitions. Beneath that I create additional partitions. Then I have do a chown -R for that user. These partitions are shared using the sharenfs=on. The owner- and group-id is 1009. These partitions are visible as the user assigned above. But when I mount the home/user partition from a FreeBSD-client, only the top-partiton has
2006 Mar 28
8
Large Database with lots of tables
Hello all, I am a rails nuby and I am evaluating using Rails for a new web application. The application will have a large number of tables (>70) that will basically mimic a large collection of paper forms that user would otherwise have to fill out. From what I have read on rails thus far it seems I would have to create a lot of models and form templates. Is this common and if so does
2007 Jan 17
4
changing the default behaviour of to_xml for has-many: associations
I recently submitted a patch to work around an issue I was having & added a new optional behaviour to the to_xml method but on further reflection I wonder if the default behaviour should be changed. The gory detail, documentation and test case is all here... http://dev.rubyonrails.org/ticket/7004 Here''s a brief example... class Person < ActiveRecord::Base has_many: children
2006 Jun 16
1
Nuby Question: How best to read a child record?
I want to read through all the child records for a given parent. What would be the correct way to do this? Advise would be most welcome. Regards, Paul
2011 Jun 13
0
Nested Attributes Link / Save to An Existing Record
Happy Monday Everyone, Would you kindly help out a struggling nuby in solving this problem? I have been researching all over, yet to find a workable solution. Situation: A model [Announcement] that accepts nested attributes [Recipients] via many_to_many :through => :awards relationship. The Desired Outcome: #1. If a recipient''s email in the announcement form is not found in the
2012 Dec 07
1
namespace subscription problem
Hi all, my problem seems to be a cosmetic one (again). According to the docs: subscriptions: "yes" (default) if this namespace should handle its own subscriptions. If "no", then the first parent namespace with subscriptions=yes will handle it. Therefore is no way to create the following scenario: three namespaces (private, shared, public) the private namespace has to
2006 Feb 19
1
One Model from two Tables with no foreign keys
I would like to create a model that is based on two database tables: Table1 --------- id (PK) data1 Table2 ---------- id (PK) data2 There is a one-to-one relationship between the records of Table1 and Table2. (That is, for every record in Table1 there is a record with matching id in Table2 and vice versa). The problem is that I cannot alter the table schemas in any way, so I cannot add
2006 Jul 24
3
HowTo?: Eager caching of third order ActiveRecord assoc.
Hello. Using the ":include", which generates a "LEFT OUTER JOIN" SQL command, it is possible to eagerly preload second order data objects (children) for a given association. I wanted to know, if it is possible to eagerly preload and cache third order (or more) data objects, which are little-children or little-little-children. As I''ve seen. it is possible to add
2007 Aug 26
2
ror app with advanced rspec?
Hi! Can anybody link to some ror based project what is using rspec, so nuby as me can learn from it. So it should have updated and practising advanced rspec. After reading last threat about "testing behaviour or testing code?", I just realised that I would definitely learn something from app like that. Some casual googling didn''t help me this time. Thanks! Priit at
2006 Nov 23
2
Returning to the same position on a page
Hi, I am not sure if this is a general web question or a Rails specific one but either way, I would really appreciate help and guidance. My application generates quotes. To do so, you start at a page that has the client details. From there you go to a catalog (a link on the quote page) and select the items that are to be in the quote. All the above is working just fine. My problem is that when