I have an app with the following models:
course
belongs_to :semester

semester
has_many: courses
belongs_to :education

education
has_many :semesters

In my old app (rails 1.2.6) I was able to access variables via

controller
@courses = Course.find(:all)

view file:
<% for course in @courses %>
<%= course.name %> <- this line works
<%= course.semester.name %> <- this is now broke
<%= course.semester.education.name %> <-this is now broken.

When upgrading to rails 2.2.2 all this is broken.
What changed?

I only changed the enviroment.rb to rails 2.2.2 and did rake
rails:upgrade
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to