From: Scott Peterson Date: 2008-12-09T08:44:38+09:00 Subject: Re: Beginner question about attributes Yossef Mendelssohn wrote: > On Dec 8, 3:31?pm, Scott Peterson wrote: >> If I run the model as is, the save goes through, but none of the fields >> except hashed_password get saved. ?Or, another way to put it is, the >> *only* field that gets saved is the one I set manually in the >> before_create handler. > Thanks for the response. I guess there's a lot I don't understand. > 1. This is a Rails question, not a Ruby question. I thought that Ruby was the language in which all the controllers, models, and views were written. If I've generated a scaffold and only changed the model file, it seems like that's where I've introduced the bug(?) > > 2. This has probably much more to do with your controller than your > model. Something in the generated create, where it initializes as such: @player = Player.new(params[:player]). I'll keep poking around to see if I can figure out why those params aren't what I think they should be. -- Posted via http://www.ruby-forum.com/.