Am 18.05.2009 um 12:58 schrieb Michael Schuerig:

On Monday 18 May 2009, schroedi wrote:

ArgumentError in NewsteamsController#create
wrong number of arguments (1 for 0)

Die entsprechende Action im Controller sieht dann so aus...
def create
   @newsteam = Newsteam.new(params[:newsteam])

Wie sieht denn Newsteam#initialize aus?

Mich würd ja eher die ganze Klasse Newsteam interessieren.
Ist die auch sicher von ActiveRecord::Base abgeleitet?

ciao, tom

--
Thomas R. "TomK32" Koll || http://tomk32.de || http://ananasblau.com
just a geek trying to change the world
Skype: TomK32 || Mail: [email protected]
http://flickr.com/people/tomk32

_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/listinfo/rubyonrails-ug

Antwort per Email an