On Jun 1, 7:10 pm, Bill McGuire <[email protected]>
wrote:
> >> b=Freak_Project.find(:first)
>
> => #<Freak_Project projectId: 1, name: "Testing", description: "">
>
> >> a.freak_project.name
>
> LoadError: Expected /home/admin/ie/app/models/freak_project.rb to define
> FreakPr
> oject
That looks like it was trying to find a class called FreakProject and
you only have Freak_Project. Use the :class_name option to belongs_to/
has_many.
Fred
>
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---