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 ?
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 ?
Pokkai D. 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 controllerAa::Bb:User.new ------>RuntimeError: ERROR C42P01 Mrelation “users”
does not existhow 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?
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
[email protected]
Pavel Lysov wrote:
Shouldn’t ‘Aa::Bb:User.new’ be ‘Aa::Bb::User.new’? Note second ‘:’
char between Bb and User.Happy New Year!
Pavlohow 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
[email protected]
i 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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs