Wie wärs hiermit? userModel = Kernel.const_get(params[:welches_modell_auch_immer]) userModel.find_by_plz(params[:plzcheck][:plz])
HTH Werner Laude schrieb: > Hallo. > ich mochte gerne bei > > Model.find_by_plz(params[:plzcheck][:plz]) > > das Model austauschbar, abhängig von einer Bedingung machen.. > Also je nachdem wer sich einlogged, bekommt eine andere Tabelle. > > Einfach eine String für Model reinsetzen klappt irgendwie nicht.. > Wie könnte das aussehen? > > Gruß > > > Werner Laude > Lindenburger Allee 22 - 50931 Köln > > 0221.8805 635 > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > http://www.webagentur-laude.de > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > _______________________________________________ > rubyonrails-ug mailing list > [email protected] > http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug > _______________________________________________ rubyonrails-ug mailing list [email protected] http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug
