Posts by Altair Todescatto F • 11 points
4 posts
-
1
votes1
answer189
viewsA: Checkbox reactjs with default value
Solved with initialValues inside the form rendering the checkbox. <Form onSubmit={handleSubmit} validate={validate} initialValues={{ section: true, menus: true }} As you can see in the code…
-
0
votes1
answer189
viewsQ: Checkbox reactjs with default value
I am working on an application with React, however I am beginner in the subject and found a problem. I want to generate a template to be used later, and the options of this template are optional and…
-
0
votes1
answer48
viewsA: Render array correctly in Rails
Changing the search for: @total = (@total_cents.select(:credits_available).to_a) for: @total = (@total_cents.pluck(:credits_available)) I can only find the column credits_available in the database,…
ruby-on-railsanswered Altair Todescatto F 11 -
0
votes1
answer48
viewsQ: Render array correctly in Rails
I’m developing an application on Ails, but I ran into a problem that may be simple, but it’s killing me inside. I have an indicator on a screen that shows the number of credits that the selected…
ruby-on-railsasked Altair Todescatto F 11