search for: get_stuff

Displaying 2 results from an estimated 2 matches for "get_stuff".

2006 Jun 06
5
Functional tests and protected actions
Hello! I have certain methods in my Application Controller, that I need to access. Namely ApplicationController#logged_in_user The problem is, that when I try to access it, I get: NoMethodError: protected method `logged_in_user'' called for #<AdminController> Any ideas how I can circumvent that? Or are functional tests really not suited for any kind of logins and session work?
2006 Aug 15
0
ActiveRecord inheritance with types table
...e_id name ordering every field has a type class FieldType < ActiveRecord::Base end stored in the field_types table field_types: id name class_name for each field type, there''s a subclass of Field that do whatever special things class BooleanField < Field def get_stuff return "I am a Boolen Field!" end end Is there any way, when I do Field.find(), that I can return fields that are all instances of the proper Field subclasses? I know this could be done using single table inheritance, but I like to have the classes in a seperate types tabl...