in rails 1.2.3 i created "ruby script/generator model aa/bb/User" "app/models.aa/bb/user.rb" were created but in controller Aa::Bb:User.new ------>RuntimeError: ERROR C42P01 Mrelation "users" does not exist how to make model object ? -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Pokkai Dokkai wrote:> in rails 1.2.3 > i created "ruby script/generator model aa/bb/User" > > "app/models.aa/bb/user.rb" were created > but in controller > > Aa::Bb:User.new ------>RuntimeError: ERROR C42P01 Mrelation "users" > does not exist > > > how to make model object ?Not sure what you are trying to accomplish - is there a reason you can''t have just a plain "User" model? -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Shouldn''t ''Aa::Bb:User.new'' be ''Aa::Bb::User.new''? Note second '':'' char between Bb and User. Happy New Year! Pavlo> > Pokkai Dokkai wrote: >> in rails 1.2.3 >> i created "ruby script/generator model aa/bb/User" >> >> "app/models.aa/bb/user.rb" were created >> but in controller >> >> Aa::Bb:User.new ------>RuntimeError: ERROR C42P01 Mrelation "users" >> does not exist >> >> >> how to make model object ? > > Not sure what you are trying to accomplish - is there a reason you > can''t > have just a plain "User" model? > -- > Posted via http://www.ruby-forum.com/. > > >Pavel Lysov pavlikus-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Pavel Lysov wrote:> Shouldn''t ''Aa::Bb:User.new'' be ''Aa::Bb::User.new''? Note second '':'' > char between Bb and User. > > Happy New Year! > Pavlo > >>> >>> >>> how to make model object ? >> >> Not sure what you are trying to accomplish - is there a reason you >> can''t >> have just a plain "User" model? >> -- >> Posted via http://www.ruby-forum.com/. >> >> > > > Pavel Lysov > pavlikus-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.orgi want to split the models according to different Modules in my project... so i want like that(it will be very easy to understand) Pavel Lysov wrote:> Shouldn''t ''Aa::Bb:User.new'' be ''Aa::Bb::User.new''? Note second '':''i wrote "Aa::Bb::User.new" in controller that is my spelling mistake when i post thank you for reply -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---