Posts by Marco Damaceno • 61 points
2 posts
-
1
votes2
answers1232
viewsA: Enable CORS in api Rails
I once installed that Gem and it didn’t work for me either. Doing some Google searches (I can’t remember where I found), I found a tutorial on how to configure CORS without a Gem. In this case.…
-
5
votes1
answer323
viewsA: Relationships with Rails
In your case, if it is a post comment, the comment should belong to the post and post should have many comments. First, you need to have in your post.Rb model: # post.rb class Post <…