Tuesday, January 01, 2008

Contact Us Form using Rails 2.0

How to develop contact us using Rails 2.0. Checkout the code from Google code website for Simply Rich Authenticator.

3 comments:

  1. 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 named
    app/model/model.rb in the SVN repos.

    ReplyDelete
  2. Re Missing Validation

    The 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

    ReplyDelete