search for: roman2k

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

2006 Jul 02
11
Rails Plugin: meantime_filter for controllers (actions within blocks)
Hello, I just finished writing a plugin for Rails that I''m annoucing the first release here: meantime_filter. It is descibed at http://roman2k.free.fr/rails/meantime_filter/0.1.0/ rdoc/ (See the end of this message for getting it.) ABOUT THE PLUGIN It extends ActionController to add the functionnality of having filters run at the action call time. This new type of filter yields when the action has to be performed. Especially, it ena...
2006 Dec 25
1
TextMate command to display ActiveRecord model attributes
...you the database columns of an ActiveRecord model displaying them in a tooltip just by selecting the model name (for example "Account") anywhere in your code and hooking up the bundle (the way you''ve chosen in the bundle properties). It''s available here: http://roman2k.free.fr/rails/tm_show_model_attributes/0.1.0/ tm_show_model_attributes.rb It''s greatly inspired from this blog entry by Chris Roos: http://blog.seagul.co.uk/articles/2006/07/14/textmate-command-to- display-active-record-column-attributes "Yeah but why should I use your version ins...
2006 Jul 06
5
Single table inheritance
I''m having a class called Person, with subclasses as goalkeeper, forward, defender. Now a person can be a forward as well as a defender or a goalkeeper. I want to use single table inheritance like : class Goalkeepr < Person end And not have multiple boolean columns like in my people table like is is_goalkpeer, is_forward, is_defender. How do I go about it ? Thanks, Pratik -- rm
2006 Jun 11
4
Model records are not saved to database in during tests
Hi, I''m trying to do unit tests which should save informations into a database that another computer should be able to get while the test is running. The problem is although my unit test class has "use_transactional_fixtures" set to false, when I create a new instance of a model and save it, it does not actually appear in the database when connecting to this same