Agung Setiawan

Joined

1,300 Experience
4 Lessons Completed
1 Question Solved

Activity

Any good reason why I might use this instead of letter_opener gem?

Posted in Capistrano Rbenv Bundle Failed

Thank you Chris
I released it today, it's now http://idrails.com

Can I use your comment above as some kind of comment / testi like in https://gorails.com/testimonials haha, would be great if you don't mind.

Posted in Capistrano Rbenv Bundle Failed

Here's my work
Not yet setup the host name

http://188.166.230.116/

I'm creating screencast about Ruby and Rails and Vim on my native language in hope people will know about Ruby and Rails since in my country, Indonesia, PHP and Laravel are the majority hahaha

Posted in Capistrano Rbenv Bundle Failed

Found the problem
I make backup file for /etc/nginx/sites-enabled/default named default.example. Turned out it was loaded so my configuration in default seems like getting overrided.

Thank you for your help Chris 😁👍🏻

Posted in Capistrano Rbenv Bundle Failed

Haaa thanks!
I used $5 droplet before lol
I changed to $10 droplet it is okay

Another problem though
I created tmp/restart.txt but passenger didn't restart so It still showed nginx default page
I have added capistrano-passenger as well

update :
It seems passenger doesn't get loaded at all

$ passenger-status
ERROR: Phusion Passenger doesn't seem to be running. If you are sure that it is running, then the causes of this problem could be:

  1. You customized the instance registry directory using Apache's PassengerInstanceRegistryDir option, Nginx's passenger_instance_registry_dir option, or Phusion Passenger Standalone's --instance-registry-dir command line argument. If so, please set the environment variable PASSENGER_INSTANCE_REGISTRY_DIR to that directory and run passenger-status again.
  2. The instance directory has been removed by an operating system background service. Please set a different instance registry directory using Apache's PassengerInstanceRegistryDir option, Nginx's passenger_instance_registry_dir option, or Phusion Passenger Standalone's --instance-registry-dir command line argument.

Posted in Capistrano Rbenv Bundle Failed

Hi,

I'm following this tutorial on deploying rails app
https://gorails.com/deploy/ubuntu/16.04

About to reach the last step but it failed when performing bundle install as screenshot below

Any clue what did I do wrong?
Thank you

Posted in Duration of a video in the listing page

Seems like you prefer a short duration video?
So do I
Maybe we can ask Chris to make video with shorter duration? 😅
It usually takes 15-20 minutes when I'm sure he can make it shorter
15-20 minutes is too long imho

Posted in Memoization Discussion

The cache only works over a single request so it will be cleared automatically if user make another request

Posted in Memoization Discussion

I don't remember if you mention when will the cache result expired and assign new value into it. So that's my question, when will the cache kind of expired? Is it only available over **a single request**?

updated :
From comment discussion here http://www.justinweiss.com/... and here http://railscasts.com/episo... it can be inferred that yes it's only available on a single request

Posted in Get Paperclip file before save

Turns out it is as easy as this

Paperclip.io_adapters.for(model.attachment).read

I tried this piece of code yesterday but didn't work and only gave me nil. The cause is I write that code before model.attachment is assgined 😅

Posted in Get Paperclip file before save

Is it possible to read the file, in my case image file, inside Paperclip::Attachment before the file is saved?

I need to send the image to an api first and then from the response it's given if it is accepted the model and the image will be saved. Otherwise do nothing.

Posted in Rails Counter Caches Discussion

Second that, I hope Chris will make another episode. Very nice idea (y)

Posted in Our First API (Example) - GoRails

It's just the basic introduction
I'm sure Chris aware of it