search for: from_param

Displaying 4 results from an estimated 4 matches for "from_param".

2008 Jan 21
2
multiple ids on restful action
...he preferred way to solve this? any transparent way to handle this? I mean ActiveRecord handles Post.find(13,14) just fine, Post.find([13,14]) also. Is there a way to make ActionController''s routing automatically give params[:id] back as an array if it detects some pattern? (something like from_param maybe?) Thanks for any help. Mathijs --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org...
2012 Mar 19
0
[LLVMdev] Python bindings in tree
On 3/17/2012 4:14 PM, Anders Waldenborg wrote: > FYI: > > I've also been working on new python bindings. > > My bindings are written using ctypes (just like the in-tree > clang/cindex bindings). Most of Core.h is bound, and stuff from > ExecutionEngine.h, Analysis, BitReader, BitWriter. The have fairly > good test coverage (using nosetests). The ctypes definitions are
2012 Mar 19
2
[LLVMdev] Python bindings in tree
...ngs are: * Auto generated vs manual ctypes declarations. From your comment above I assume you would prefer auto generated too. * Types inheriting from c_void_p vs having a ptr attribute. My bindings has for example Module (indirectly) inheriting from c_void_p, that way there is no "from_param" methods needed, and no extra attribute of the actual pointer. I'm not sure this is better. I might have done with separate pointer as you have if I started from scratch today. * Use of constructor vs "new" static methods. When using the bindings one never initializes...
2012 Mar 17
3
[LLVMdev] Python bindings in tree
At Fri, 16 Mar 2012 14:12:08 +0100, Christoph Grenz wrote: > > Hello, > > Am Donnerstag, 15. März 2012, 21:15:02 schrieb Gregory Szorc: > > There was some talk on IRC last week about desire for Python bindings to > > LLVM's Object.h C interface. So, I coded up some and you can now find > > some Python bindings in trunk at bindings/python. Currently, the >