This article was just what I was looking for.... NOTE:1. In the screencast the action added was 'index', it should have been 'new'2. The app/model/contact.rb is namedapp/model/model.rb in the SVN repos.
Re Missing Validation The user controller now has an additional line as follows:-def create.....@user.register! if @user.valid?if @user.errors.empty?...endThis has solved the missing validation for me.euro
got a 500 error
This article was just what I was looking for....
ReplyDeleteNOTE:
1. In the screencast the action added was 'index', it should have been 'new'
2. The app/model/contact.rb is named
app/model/model.rb in the SVN repos.
Re Missing Validation
ReplyDeleteThe user controller now has an additional line as follows:-
def create
.....
@user.register! if @user.valid?
if @user.errors.empty?
...
end
This has solved the missing validation for me.
euro
got a 500 error
ReplyDelete