On Tue, Sep 1, 2009 at 9:39 AM, karthik k <cse.k.kart...@gmail.com> wrote:
> > > On Tue, Sep 1, 2009 at 9:24 AM, Frederick Cheung < > frederick.che...@gmail.com> wrote: > >> >> > Hi >> > >> > Same old model problem >> > >> > role.rd //model >> > def check_role >> > puts "Role sdfsdfd" >> > end >> > >> > presenter.rb //model >> > def validate_name >> > self.role.check_role //calling from role.rb model >> > end >> > >> > in presenter_controller i am calling as >> > >> > @presenter= Presenter.new >> > @presenter.validate_name >> > >> > i am getting as >> > >> > Action Controller: Exception caughtNoMethodError in >> > PresenterController#create >> > >> > undefined method `role' for #<Presenter:0x2f3d2dc> >> > >> > but in the existing code it is working for some other module >> > >> >> Does Presenter have a role method ? if not then you've got your >> answer. >> > > hi Fred > > I am not able to under stand > Does Presenter have a role method ? > no there is no method in Presenter model > > can you plz explain in detail > > -- > Karthik.k > Mobile - +91-9894991640 > Hi Fred Thank you I did -- Karthik.k Mobile - +91-9894991640 > >> Fred >> > > > >> > plz Guide me >> > >> > -- >> > Karthik.k >> > Mobile - +91-9894991640 >> > >> > >> > >> > >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---