0
I’m studying ruby on Rails and little time, and one of the exercises I’m trying to do is a checkbox and a Submit button on a haml page, the goal is that the Submit button only works if the checkbox is marked, if it doesn’t just give a generic message like "Complete the fields", how can I do this?
On the Submit button itself I need to pass the value of Acceptance? or on the checkbox? Just need the model and controller? I haven’t quite got the hang of it yet
– dfop02
@dfop02 on the model
– vinibrsl