Are you getting an error message that you can post?
>> 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
E. Litwin wrote:
Is there any reason you need the underscores in your model names? i.e. Try naming it FreakProject instead of Freak_Project if possible.
On Jun 1, 11:10�am, Bill McGuire <rails-mailing-l...@andreas-s.net>
Thanks E and Frederick but no luck. Not really sure what's gone wrong.
E. Litwin wrote: > Is there any reason you need the underscores in your model names? > i.e. Try naming it FreakProject instead of Freak_Project if possible.
> On Jun 1, 11:10 am, Bill McGuire <rails-mailing-l...@andreas-s.net>
Thanks E and Frederick but no luck. Not really sure what's gone wrong.
So what did you try and with what results ?
Fred