similar to: how to map one-to-one relation to two tables

Displaying 20 results from an estimated 300 matches similar to: "how to map one-to-one relation to two tables"

2006 Jul 11
0
dynamic routes from the url? is this even possible?
my quesion is...what is available to routes.rb that it creates the values of the symbols you define in the rules? what i mean by this is, is there a named variable that contains the url sent in the request that i can get at to force values into my rules? i''m trying to do the following: i have a url.. www.my_domain.com/abc/blogentry/show/1 and the rule.. map.connect
2008 Mar 28
0
Problems with URL encoding
Hi I have a problem when sending parameters from link_to_remote. My link code: <%= link_to_remote "Remove", :url => object_relation_path( :id => 0, :object_relation => { :parent_id => @product.id, :parent_type => "Product", :child_id => content_object.id, :child_type => "ContentObject",
2008 Mar 03
1
How change text_area form helper into rich text entry area/control?
Do you know how to render a rich text input area (with HTML formatting buttons (bold, italics, etc., available?) In RoR I''m hoping this is very easy to pull off?!? <%= text_area ''blogentry'', ''entry'' %></p> TO <%= rich_text_area ''blogentry'', ''entry'' %></p> ??? Haven''t found
2005 Dec 18
0
Caching question
I''ve got caching mostly working but it''s acting string with the index/home. On the site I have a redirect the points http://nutritionreality.com at http://nutritionreality.com/home I do this in routes.rb by: map.index '''', :controller => ''home'', :action => ''index'' Caching happens on index (index.html gets created in
2006 Apr 18
2
Connecting to multiple databases with multiple database users
Hi everyone, I was wondering what the common practice for handling multiple db users with fine grained privileges on multiple databases is. Against the often read guideline for rails users to keep with a single db as "more dbs don''t really make sense anyway", my opinion is that it DOES make sense to use more than one db schema for a number of reasons that I won''t
2005 May 16
3
[LLVMdev] Lightweight code loader
Hi list, The short version of my question: Is it easy to make a lightweight (read: small in size) linker loader for code produced by the llvm jit. Does it even make sense to do so? The longer version: Suppose I have some llvm bytecode module A, and I want to load and use that code in some runtime. The two obvious ways to do that are a) use the LLVM jit, or b) compile the module into a dynamic
2010 Jul 29
4
Convert plugin
Hi, I'm trying to convert users from a sendmail server to a postfix/dovecot server. All works fine but one of the last things is to rescue the messages in /var/mail/<user> on the old server. This seems very straitforward using the convert plugin but with the settings from the wiki, nothing happens when the user logs in. Do I need a private namespace for this as suggested elsewhere
2005 May 16
0
[LLVMdev] Lightweight code loader
On Mon, 16 May 2005, Alexander Friedman wrote: > Would it be possible (ie, relatively straitforward) to do the > following: Take the code in module A, compile it with the JIT (since > we cannot make libraries in Windows), and save the resulting binary > goo in some file. Later (in a different instance of the runtime), with > some much smaller sized loader, read in the file and link
2006 Aug 16
0
Creating a comments system for multiple types of
It sounds like you want a polymorphic association - class Party < ActiveRecord::Base has_many :comments, :as => :commentable end class BlogEntry < ActiveRecord::Base has_many :comments, :as => :commentable end class Comment < ActiveRecord::Base belongs_to :commentable, :polymorphic => true end then include columns ''commentable_id'' and
2008 Oct 06
2
Letting a user choose pictures
I have an area on a site where a user can upload pictures to, and then another area in which they create a new topic. Now I want a user to be able to select photos from their uploaded photos... and I''ve hit a coder''s block. Any tips on designing this interface? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google
2016 Jan 22
0
tinc with ha firewall
Ok, I think synching 2 firewalls are best solution with keepalived active/passive HA, too. I'll try this solution to see if all goes straitforward between failover/failback and tinc communications. Thank you Guus. Best regards Roberto -----Original Message----- From: tinc [mailto:tinc-bounces at tinc-vpn.org] On Behalf Of Guus Sliepen Sent: venerd? 22 gennaio 2016 10.24 To: tinc at
2005 May 27
2
[LLVMdev] Lightweight code loader
On May 16, Chris Lattner wrote: > On Mon, 16 May 2005, Alexander Friedman wrote: > > Would it be possible (ie, relatively straitforward) to do the > > following: Take the code in module A, compile it with the JIT (since > > we cannot make libraries in Windows), and save the resulting binary > > goo in some file. Later (in a different instance of the runtime), with >
2005 May 27
0
[LLVMdev] Lightweight code loader
Alexander, Yes, a patch like that would be accepted. Fewer dependencies = good :) Some notes on doing this: (1) Please make sure you use the std c++ iostream libraries for doing I/O. No native calls (we end up with portability problems). If you need something that must be ported, please add it to lib/System (2) You should also use the sys::Path class (include/llvm/System/Path.h) for handling
2009 Feb 22
8
dynamically changing a form from POST/CREATE to PUT/UPDATE
For the life of me I can''t figure this one out, although I can''t find anyone else who''s attempted to do this, and probably with good reason. Context: blog using AJAX What I''m trying to do: when the user initially saves a blog entry, or when auto-saving, I want subsequent saves to not create a new blog entry Why I can''t just reload the partial: -
2006 Aug 01
1
Some errors in the blogentry with instructions on how to install Xvnc on Solaris
Hi, I created my first Xen DomU running Solaris today using the instructions from this page Creating Solaris domU virtual disk images at OpenSolaris.org <http://www.opensolaris.org/os/community/xen/How-To-07-2006/Solaris-domU/> and it works out of the box! That''s cool again! If you''re going to do the same (and I encourage you to do so!) be aware that it takes a
2004 Sep 13
0
[LLVMdev] Inline Assembly
Reid Spencer wrote: > In order to get to the next stage with LLVM (like compiling a kernel) we > need to allow "pass through" of inline assembly so things like device > drivers, interrupt vectors, etc. can be written. While this feature > breaks the "pure" LLVM IR, I don't see any way around it. <shameless plug> Actually, there should be a way around it.
2007 Aug 06
5
Problems with array mock
Hi everyone, I''m trying this in my helper spec and it didn''t work: @curr_odontogram.should_receive(''photos[1]'').and_return(@photo) and the error is: SyntaxError in ''PersonHelper Deberia devolverme un link para eliminar una foto'' compile error /home/gramos/src/rails/r-dental/config/../vendor/plugins/rspec/lib/spec/mocks/proxy.rb:99: syntax
2003 Nov 07
2
opposite function of strsplit() ?
Hi, I what to solve this problem: >alfab <- "ABCEDFG" #[1] "ABCEDFG" >chara <- strsplit(alfab, "") #[1] "A" "B" "C" "E" "D" >"F" "G" Then I do some changes before I want the character together again, say, remove two letters. Now,
2015 May 12
2
AEL keyword IfTime with variable on time range
Hi It's possible using a variable in the iftime keyword argument? E.g: context text { s => { timerange = '06:00-12:00|*|*|*'; ifTime(${timerange} { Playback(ivr/goodbye); } } } thanks [image: Sua Foto] <rafaelsnsa at gmail.com>Rafael S. SaraivaPorto Alegre - RS | Mobile: (51) 8174-7956 <http://br.linkedin.com/pub/rafael-saraiva/52/aab/230>
2015 May 12
1
AEL keyword IfTime with variable on time range
Sorry, I forget to tell I tried, but not works. *Context:* context ivr_temp2 { s => { Proceeding(); str_time_01 = '06:00-12:00|*|*|*'; // Manh? ifTime (${str_time_01}) { Playback(ura/bom_dia); } } } The error is showed on "ael reload". *Console errors:* rs0000sr304*CLI> ael reload Command 'ael reload' failed.