Skip to content

find without dynamic finder #15

@cocodrino

Description

@cocodrino

hi...this is a pretty noob question....when I use find_by_email I get:

Warning: Defining view User#by_email with keys "email" at call time, please add it to the class body...
I don't know what must I do and use a method in call time result very slow and I'm used to datamapper style finder; there are any way for find whitout dynamic finder; I've tried it:

user=User.first(:name => "gaga") nice style datamapper
or

user=User.find(:first, :condition =>{:name => "gaga"}) ugly old rails version

but any work

thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions