similar to: Rendering objects directly via <%= render @some_object %>

Displaying 20 results from an estimated 200 matches similar to: "Rendering objects directly via <%= render @some_object %>"

2006 Feb 04
1
Rendering objects
So, Ruby is OO all the way, but in Rails we can?t render an object? Having retyped way too many calls to ActionViews render method with various options, I finally figured, why not make it possible to actually render customized objects, which could encapsulate the often messy code, that I often ended up writing partly in the controller and partly in the view - using instance variables, and
2006 Jul 26
1
Polymorphic Associations: dynamic finders
Is there any sort of dynamic finder for polymorphic associations? For example if I had: class InviteNode < ActiveRecord::Base belongs_to :inviteable, :polymorphic => true end I would like to be able to search by: InviteNode.find_by_inviteable(some_object) instead of having to do: InviteNode.find_by_inviteable_id_and_inviteable_type(some_object.id, some_object.class.name) obviously I
2002 May 22
1
AW: rsync without syncing file permissions under W2K
Wernicke, Heino (CGS) wrote: >Thank you! >That helps a little. But the permissions on target machine >will not be inherited from parent folder as I wanted. > Uhm... removing ntsec shouldn't touch permissions at all... can't just you use "chmod -R 755 *" after rsyncing? -- Lapo 'Raist' Luchini lapo@lapo.it (PGP & X.509 keys available) http://www.lapo.it
2006 Jun 25
5
Where should I put an Bugreport of OggEnc
Hi There, I have a problem with OggEnc v1.0.2. Can you tell me, where to put or to post a bug report? The problems eare with some speciel charakters - used in Europe (Denmark, Norway, Sweden, Germany, Austria, etc..) Some Examples: Hin Vordende Sod & S? ^ 02_Bruderov paa H?gstadtun.ogg ^ 03_Huldradans - Hin Gr?nnkledde.ogg ^
2002 May 21
2
rsync without syncing file permissions under W2K
Hi there, I'm playing arround with rsync under W2K in conjunction with the cygwin environment. What I want is to get rsync copy a folder tree from one W2K machine to another W2K machine through a firewall. I installed the cygwin on both machines and got the rsync running which is using an openssh connection with public key authentication. Everything works fine except for the assignment of
2015 Jan 30
0
[LLVMdev] IR extension proposal: bitset constants
Hi Peter, Please forgive if this is an obvious question, but how reasonable is it for this approach to work when not all translation units are available to be rebuilt with the new information? I'm very interested in what you're proposing here. Jim Sent from my iPhone > On Jan 27, 2015, at 1:07 PM, Peter Collingbourne <peter at pcc.me.uk> wrote: > > Hi all, > > I
2012 Jul 07
1
Getting objects from quantmod ticker list
Hi all, I would need to put datas downloaded with quantmod into a matrix or a data frame. Suppose to start from here: *require(quantmod) ticker.list <- c('AAA', 'ALTSALES', 'AMBNS', 'AMBSL', 'BAA', 'EMRATIO', 'FEDFUNDS', 'GASPRICE', 'GS1', 'GS10', 'GS20', 'LNS14100000', 'MORTG',
2006 Apr 24
1
Just a couple questions on how I should go about
> I need a simple blog with categories and comments and an archive. I want a > nice posting system, but don''t want it in HTML. Is there something I can add > or make, kind of like BBCODE? http://whytheluckystiff.net/ruby/redcloth/ http://wiki.rubyonrails.org/rails/pages/RedCloth > I pretty much know what else I have to do, but there is one more thing. A > client section.
2015 Jan 28
3
[LLVMdev] IR extension proposal: bitset constants
I would start from using module-level metadata. An IR extension might be a good idea once we show that - the proposed indirect call protection mechanism is efficient and useful, and - there are other use cases for the IR extension. --kcc On Wed, Jan 28, 2015 at 2:57 AM, Sean Silva <chisophugis at gmail.com> wrote: > Is there any way to accomplish this that doesn't require
2015 Jan 29
3
[LLVMdev] IR extension proposal: bitset constants
So, bitset would be a property that means : globals with the same name will append on a string of bits in the order in which they appear, and it's the job of the front end to make sure the correct order is followed in every unit, so that linking does the right job in every corner case? Could that be used for efficient global boolean flags, like LLVM's options? Even if you don't need
2015 Jan 27
7
[LLVMdev] IR extension proposal: bitset constants
Hi all, I would like to propose a mechanism that allows IR modules to co-operatively build a pointer set corresponding to addresses within a given set of globals. The specific use case I have in mind is to provide a mechanism for a C++ program to efficiently verify (at each call site) that a vtable pointer is in the set of valid vtable pointers for the class or its derived classes. One way of
2005 Nov 30
0
Cross-subnet browsing
I have two domains which are on different subnets, connected by a routed OpenVPN tunnel. The domains trust each other. Domain A has the WINS server. Domain B is confused to use Domain A's WINS server. The VPN pushes the WINS server as part of its DHCP options as well. >From either domain, I am able to use smbclient to see the shares on the other domain's PDC. I have to specify -W
2010 Jun 11
9
Are recursive snapshot destroy and rename atomic too?
In another thread recursive snapshot creation was found atomic so that it is done quickly, and more important, all at once or nothing at all. Do you know if recursive destroying and renaming of snapshots are atomic too? Regards Henrik Heino
2007 Nov 08
0
Models for external REST services
Hello, I''m new to rails so as an exercise I''m porting (php to rails) a very simple landing page that talks with a third party REST service where I just need to do a couple of calls to register a user and show the status of the whole process. I felt this would be dead simple to do in Rails (I''m still learning) but I''m having a hard time getting it working. My
2019 Nov 10
0
class(<matrix>) |--> c("matrix", "arrary") [was "head.matrix ..."]
On 10/11/2019 9:17 a.m., Bryan Hanson wrote: > > >> On Nov 10, 2019, at 3:36 AM, Martin Maechler <maechler at stat.math.ethz.ch> wrote: >> >>>>>>> Gabriel Becker >>>>>>> on Sat, 2 Nov 2019 12:37:08 -0700 writes: >> >>> I agree that we can be careful and narrow and still see a >>> nice improvement in
2019 Nov 10
2
class(<matrix>) |--> c("matrix", "arrary") [was "head.matrix ..."]
> On Nov 10, 2019, at 3:36 AM, Martin Maechler <maechler at stat.math.ethz.ch> wrote: > >>>>>> Gabriel Becker >>>>>> on Sat, 2 Nov 2019 12:37:08 -0700 writes: > >> I agree that we can be careful and narrow and still see a >> nice improvement in behavior. While Herve's point is valid >> and I understand his frustration,
2019 Nov 11
2
class(<matrix>) |--> c("matrix", "arrary") [was "head.matrix ..."]
>>>>> Duncan Murdoch >>>>> on Sun, 10 Nov 2019 11:48:26 -0500 writes: > On 10/11/2019 9:17 a.m., Bryan Hanson wrote: >> >> >>> On Nov 10, 2019, at 3:36 AM, Martin Maechler <maechler at stat.math.ethz.ch> wrote: >>> >>>>>>>> Gabriel Becker
2009 Sep 19
1
generic methods - in particular the summary function
Hi all, I'm currently working on the fitdistrplus package (that basically fit distributions). There is something I do not understand about the generic function summary. In the current version on CRAN, there is no NAMESPACE saying S3method(summary, fitdist) . However if we use summary on an object send by fitdist function it works fine... According to R-lang, we have " The most
2019 Nov 12
0
class(<matrix>) |--> c("matrix", "arrary") [was "head.matrix ..."]
On 11/11/19 01:40, Martin Maechler wrote: >>>>>> Duncan Murdoch >>>>>> on Sun, 10 Nov 2019 11:48:26 -0500 writes: > > > On 10/11/2019 9:17 a.m., Bryan Hanson wrote: > >> > >> > >>> On Nov 10, 2019, at 3:36 AM, Martin Maechler <maechler at stat.math.ethz.ch> wrote: > >>> >
2015 Jul 20
0
Problems with IMAP/POP and dovecot director on backend (director_proxy_maybe)
Hello dovecot community, first of all: dovecot ist great! ;) ...nevertheless I?ve got some problems to get my director scenario running as needed/expected :( My scenario: I?d like to configure two dovecot backends, without the need for multiple dovecot instances. Both backend servers are active/active and act on top of a glusterfs storage, which implies the need for dovecot director. As