Did you change the name of the file as well? (Guessing you did, but
hey, I''ve done weirder things). The other thing you''ll need to
do is
clone the structure to the test again if you have any changes in your
dev db.
-Nick
On 2/12/06, joey__ <cardologist@gmail.com> wrote:> I have a model called Index, but the table is called Index. So in my
> model, I have
> ste_table_name ''index''
>
> But in tests the fixtures are called indices, so I renamed it and
> changed
> >>fixtures :indices
> to
> >>fixtures :index
>
> When I try use index(:first), I get a nil error. I don''t know what
Im
> doing wrong.
>
> Thanks
> Joey
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>