Displaying 2 results from an estimated 2 matches for "mmmmmmm".
Did you mean:
mmmmmm
2006 Sep 25
3
Subclasses - help required
Hello all and hoping for some insight
a project manger type of application, staff are assigned to projects,
but each staff has varied roles for different projects... STI does not
seem to be applicable here
Imagine a table staffs...
id int
name varchar
blah....
is_manager int 1
is_engineer int 1
is_producer int 1
and projects...
id
name
manager_id
engineer_id
producer_id
how is the best way
2011 May 26
3
Kaminari rspec testing undefined method page.
Someone use kaminari for pagination?
I''m doing some tests but I don''t know why I have an undefined method page.
Here is my simple test:
describe "GET index" do
it "assigns all fire_preventions as @fire_preventions" do
FirePrevention.stub(:search) { [mock_fire_prevention] }
get :index
assigns(:fire_preventions).should