agile-france / propile

Community Conference Program Compiler (for Agile France)
2 stars 8 forks source link

Fix presenter creation #13

Closed oelmekki closed 11 years ago

oelmekki commented 11 years ago

Configuration page allows presenter / maintainer creation directly from web interface :

account_creation

This is not working for me.

ActiveRecord::RecordNotUnique (PG::UniqueViolation: ERROR:  duplicate key value violates unique constraint "presenters_pkey"
DETAIL:  Key (id)=(4) already exists.

An other exception is thrown when reloading the page, after removing account from database.

Fixing

I suppose the first time, a confirmation email should have been sent. We need a mail catcher to ensure this.

For the exception, the problem seems to be there is no dependent: destroy on Account#has_one :presenter.

Enhancing

After submitting the form, a message should be displayed to let us know what now :

confirmation

To be adapted depending on what should actually happens when this form is completed.

Needs #12

dboissier commented 11 years ago

ok for me