Leonardo Mateo wrote: > On Sat, Oct 24, 2009 at 7:09 PM, Misiek Sz > <rails-mailing-l...@andreas-s.net> wrote: >> made to the get_student_info method where student info is pulled and >> �<tr> >> � �<%= observe_field(:st_id, :frequency => 0.25, :update => >> � �<td><%= f.label :service_code %></td> >> >> EducationPlan controller. > The error message says that you're calling a method on a nil object. > If you uncomment that line, you will be calling the student_id method > on @education_plan instance, but @education_plan is nil there. > > -- > Leonardo Mateo. > There's no place like ~
Thanks. Why is it nil if the method is part of the controller? And also how can I create an association between education_plan and student based on the ajax call from education_plan? -- Posted via http://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 rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---