Displaying 4 results from an estimated 4 matches for "evanchaney".
2006 Aug 12
3
Capistrano deployment pathname error
When I try to do a deployment with Capistrano I get the error "No such
file to load -- pathname" when Cap tries to execute reaper. Any ideas
what''s causing this or how I can troubleshoot it? (Output follows.)
Thanks.
Evan
-----BEGIN OUTPUT-----
[evans-powerbook:~/Desktop/asktheguys] evan% clear ; rake remote:deploy
(in /Users/evan/Desktop/asktheguys)
loading
2009 Dec 25
2
Understanding “create_association” and invalid objects
The documentation on the “create_association” method of the “belongs_to” association reads:
> create_association(attributes = {})
> Returns a new object of the associated type that has been instantiated with attributes, linked to this object through a foreign key, and that has already been saved (if it passed the validation).*
My expectation from this documentation is that calling
2009 Dec 30
4
Validating the presence of two associated objects from both models
I have a model “Conversation” and a model “Leader”. A Conversation is always led by exactly 1 Leader.
I’ve overridden Conversation’s “validate” method to validate the presence of an associated Leader model.
If I add a similar validation to the Leader model, however, Conversations can no longer be saved on creation because the Leader model is invalid.
On creation of both a new Conversation and
2009 Mar 01
1
Preventing read access to a model
In a model are there any methods that are called before providing
access to the model?
I''m exploring ways to enforce privileges in my app. Wondering if I can
define some sort of "before" method in the model to prevent read
access to the model unless certain conditions are true.
Thanks.
Evan
--~--~---------~--~----~------------~-------~--~----~
You received this message