Posts by Eduardo Tanaka • 26 points
3 posts
-
0
votes1
answer296
viewsA: Rails Assets error. Javascript not working correctly (Datepicker)
I recommend using the 'bootstrap-datepicker-Rails''. In app/Assets/stylesheets/application.css, add: *= require bootstrap-datepicker3 And in app/Assets/Javascripts/application.js //= require jquery…
-
1
votes1
answer110
viewsA: Should I use foreign_key in both has_many and belongs_to?
The second option is the correct one, as you said yourself is your Employee class that has the foreign key in the relation. You can also omit the placement of foreign_key in your Employee class,…
-
0
votes1
answer265
viewsA: How to edit the simple_form to customize the fields
Put the input_html: { class: 'form-control' } in its input <%= simple_form_for @admin_category, as: 'user_basic' do |f| %> <%= f.input :name, label: 'Nome', input_html: { class:…