Max Viskov
Max Viskov

Reputation: 37

Ruby - confirming data and sending to database

This is not really a coding question, it is more about the approach. I am new to Ruby, but know several other languages. The idea is the following: I have a list of art classes, and the users can register to those classes (one-to-many) I created Users and ArtClasses models.

I also created Registrations model, which holds the cross-reference between the user and the class he subscribed to.

Basically, everything currently works already up to the last screen, where I have all the information about the class and the user - ID, email, and the rest.

My question is: What is the best approach to confirm the subscription and send the data to the database table (registrations model)? Should it be the form with non-editable fields and "Submit" button, or is there any more elegant solution? Again, this is about the approach. Thank you very much in advance!

Upvotes: 0

Views: 37

Answers (1)

Lucas Moulin
Lucas Moulin

Reputation: 2530

Based on the details you provided I believe it'll be better if you don't show any confirmation screen at all. In my opinion confirmation screens should be displayed when there is something important and potentially 'dangerous' happening, like payments.

So, unless this subscription is something the user can't edit later, I suggest you don't display any confirmation screen.

Upvotes: 1

Related Questions