Posts by Guilherme Nunes • 28 points
4 posts
-
0
votes2
answers104
viewsA: Modelling Ruby on Rails
I think it’s in logic that Alex said. Each piece of equipment has several checks, while several checks belong to one piece of equipment. This is a one-to-many relation (one_to_many). Then more or…
-
1
votes1
answer13
viewsA: Error editing an Object(Activity) in Rails_admin
I had a similar problem, but I found out it was on account of the Devise, and I wasn’t authenticating. It can be a permission problem, as it can be a configuration. If you can, post the Config of…
ruby-on-railsanswered Guilherme Nunes 28 -
0
votes2
answers583
viewsA: Consuming API Reactjs
Check if the address http://localhost:3010/test is working normally in the browser (whether it returns data or not). But I believe something is missing in your React environment. If the javascript…
reactanswered Guilherme Nunes 28 -
0
votes1
answer523
viewsQ: Join data from two tables per foreign key - Rails Activerecord
Hi, I have a Model Comment who is a belongs_to of User, and a Model Profile that also is a belongs_to of User. I can access User data easily through Comment.first.user, for example, but I would like…