Category Archives: Ruby

Rails 5 – API Only – Enable Cookies and Sessions

So you’ve been trying a lot of trial and errors just to enable cookie based session on a API only rails app? Are you trying to customize the cookie expiration but it simply defaulting to default session only cookies? The … Continue reading

Posted in Ruby, Web Development | Tagged , | Leave a comment

Carrierwave AWS – copying files from one model to another

We have already a working code for copying Carrierwave files from one model to another, however, it is only working for file based storage. For Amazon S3 storage, it is quite not working. Here is our old code: Every time … Continue reading

Posted in Ruby | Tagged , | Leave a comment

Rails 5 – Self Join belongs_to – entity must exist error

Wow, this is my first post for Ruby on Rails and Ruby in general! So what I’m trying to do is very simple: create a self join relationship for the user table like a parent/child relationship. However, Rails always complains … Continue reading

Posted in Ruby, Web Development | Tagged | 1 Comment