Displaying 20 results from an estimated 23 matches for "some_objects".
Did you mean:
some_object
2006 Feb 07
0
Rendering objects directly via <%= render @some_object %>
My original post might have been overlooked by most, but I''ve made a
plugin (link below) which allows rendering of objects directly via the
render method:
<%= render @some_object %> which would actuall render the @some_object
object (the object is even able to handle the options hash.
Rendering would actually be handeled by the object itself, by leaving it
up to the object to
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
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
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
2010 May 27
4
[PATCH] Rails 3: fields_for helper doesn't work with association proxy objects
Request for eyeballs. :-)
Mongoid uses association proxy objects. It overrides #nil? => false
when the association is missing. However since it uses proxy
objects, !!assocation is always true.
I have created a ticket with a patch that changes the association nil
test to call assocation.nil? rather than use implicit coercion of the
variable.
See:
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
2008 Jul 04
2
How to make WHERE foo_id IN () query?
Hi,
There are 3 models:
A has_many :Cs
B has_many :Cs
C belongs_to A and B
I got a single object of A and an array of B objects. How can I get
all Cs that have a_id equal to object A.id *and* b_id that belongs to
an object in Bs array?
Regards
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
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 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
2006 Aug 15
2
Unit Testing Problem
I''m having a bit of difficulty when testing my models, I''ve read a few
times the testing chapter in Agile web development with rails and at
http://manuals.rubyonrails.com/read/chapter/27 but i''m still unsure of
what I should be testing.
Firstly I''d like to be able to test things like my email validation
using lines such as
assert User.new(:email =>
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
2006 Jul 08
1
Ajax, RJS, and Standard Form Errors
Hi all,
I''m trying to take the standard scaffold and add a bit for ajax to it. I
have a two column page with the list on the left and the right side is
reserved for the create/edit actions. On a successful save my rjs executes
and updates the list view on the left and returns the right side to a "home"
page. However, if one of the model validations fail I use rjs ro
2009 Oct 29
4
manipulating form
Hi,
I work with forms and i won''t to set a name for a form to use
javascript functions..
How can i do
Thanks
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
2005 Jul 08
2
Multiple language support
Hi
I am a newbie on Rails. I am trying to figure out how
to implement a multiple language site. How do you deal
with navigation, error messages coming from Rails etc.
Anybody have practical suggestions?
Tnx
-- PC
-- PC
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
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 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:
> >>>
>
2012 Jan 27
4
Redirecting to create new page with input
Rails 3.1.3
I believe this is a very very fundamental question, but since I am new
to Rails, it''s more productive to ask someone to point out what I need
to do.
Say, I have a search method that generates a list of youtube videos. I
have completed this part.
And also, I have set up a database, Video, whose fields are video_title
and URL.
I need to place a button to each of these video
2006 Mar 14
21
Changing default date format in Rails
I''ve spent all day digging through the rails api and postgres-pr on
this, I think it''s time to ask the list.
Postgres stores a Date in YYYY-MM-DD format. My users want the dates
in MM/DD/YYYY format.
Sure, I could explicitly convert it on the app level every place where
a date is displayed, but that seemed like a DRY violation.
I thought I''d be clever and simply