search for: teamaskin

Displaying 5 results from an estimated 5 matches for "teamaskin".

Did you mean: teamaskins
2006 May 16
2
Validate Before Delete
I have an Order model with a ''status'' column. What I want to be able to do is validate that the status of the Order is not completed before it is allowed to be deleted. I tried the following method in my Model, but it appears that this only works for an :update or :create on the record. Anyone know how to do this, and if it should be in the model or the controller?
2006 May 09
11
model filter?
Hi All, Is there a way to filter / modify the output of a model class before it''s returned to controller/view that''s calling it? Example: I have a field phone_number which I always want to preformat using the number_to_phone() helper.... Any help is appriciated. Thanks! -- Posted via http://www.ruby-forum.com/.
2006 Jun 27
0
Sydney ROR Meetup - Wednesday 28th June 2006
...e either pipe up over at discuss@rubyonrails.com.au or send an email to Piers Warmers (hello [at] pierswarmers.com) who''s kindly offered his office as the meeting venue. 1/70 Mary Street, Surry Hills. Arrive 6:30pm for a 7pm start. Look forward to seeing you there. cheers, Ben -- http://teamaskins.net
2006 Aug 16
0
Testing has_many, :through relationships
...find(:first) returns true, which I''m assuming is the logical expression that the spec resolves to. Is this a problem with my spec or a problem with Rspec on Rails? I''ve only been using it for the last couple of hours so I expect I''m the problem. cheers, Ben -- http://teamaskins.net
2006 May 23
11
putting the schema in the model files
THE SCHEMA IN THE MODEL a small write up on ''putting the schema in the model'' This is a write up on an issue best covered in a mailing list thread of Januari 2006 (see the links in the text), I repost it because I think it deserves a place on the agenda. == Why? == I was switching back and forward between the model files and the schema.rb -- off course I have