search for: teesea

Displaying 3 results from an estimated 3 matches for "teesea".

2010 Jun 10
4
rails removes newlines and spaces from ajax requests
Hi I have an app which posts an ajax request with with text area content, but when it does post it it gets all the newlines and multiple spaces removed (need to use multiple spacing for use with markdown code snippets) I''ve created a sample app which you can see here http://test.42horizons.com/test, View it in IE 8 and both requests remove line spaces and new lines, view it in firefox
2007 Oct 24
6
how to subclass active record to call a method on all save and destroy actions
I''m looking for a way to subclass active record (I''ll refer to the subclass I want to create as NewActiveRecord) so that I can call different methods on a save or destroy action on all models which sub class NewActiveRecord I dont want to use before_save or any of the other regular call back methods as I want to be able to use these call backs in the models which subclass
2007 Apr 08
1
acts_as_attachment save file in folder named after models parent id
This is probably pretty easy, but I''m still a newb as far as ruby and rails goes. I am using the acts_as_attachment and would like to know how I go about setting the path that the file is saved to so that it is saved in a folder named after the models parent model id Thanks in advance Tony --~--~---------~--~----~------------~-------~--~----~ You received this message because you are