Anthony Lee

Joined

2,680 Experience
24 Lessons Completed
0 Questions Solved

Activity

Posted in how to move existing body content to use action text?

Hey Alan, did your approach work? This worked for me: https://github.com/rails/rails/issues/35002

Posted in Reddit style comment thread pagination Discussion

Anyone else having an eager loading problem with this tutorial?

USE eager loading detected
  Comment => [:commentable]
  Add to your query: .includes([:commentable])

Posted in Nested Comment Threads in Rails - Part 1 Discussion

Arnas, did you get this to work?

Posted in Nested Comment Threads in Rails - Part 1 Discussion

This was a very helpful tutrial. It will be nice add on to have this in react and vue.

Can't you just do this with automatic deploys in Heroku?

Posted in Grandfathering

Thanks for replying guys. Daniel, those are great tips! Thanks. I got some good ideas from you both.

My situation was little bit different, since I was moving our users from freemium to a paid version. I decided to grandfathered in the free users and start charging for the new users.

It was little tricky since users had different authorization levesl to certain parts of the services.

I was wondering how other people were approaching the problem, and these helped!

Posted in Grandfathering

I am experimenting with pricing. Any good tips or procedures to try out grandfathering in old users and apply new pricing to new users?

Posted in Deploy Ubuntu 18.04 Bionic Beaver Discussion

I fixed it by:

  • Installing SSL (LetsEncrypt)
  • configuring the /etc/nginx/sites-enabled/yourapp file to listen to 443
  • configuring the firewall

This was a good resource:

https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04

I have tested this in:

Amazon Lightsail
Digital Ocean
Azure

and it seems to all work with just few minor changes in each.

Posted in Auto saving forms as they type.

Yes Chris, I think this is a common feature now that it will be a great screencast! DO IT.

Posted in Auto saving forms as they type.

Any good tips on how to auto save the form while user is typing?

For example:
Post is a model. I press create new post to open up a form. While I am typing a post field—it auto saves the post prior to pressing the save button. As user continues to type new things, it continues to save. I have seen some javascript libraries—but was wondering if anyone has implemented this with their rails app.

Posted in How to calculate MRR in Stripe?

I need total sum of MRR amount in single digit. Anyone knows how this is possible in Stripe?

Posted in Comments With Polymorphic Associations Discussion

Do it!

@service = Service.where(provider: auth.provider, uid: auth.uid).first

FYI, that line gives an error if you cancel the omniauth login process.

Yes, this doesn't work in Safari.  Even this page https://gorails.com/users/sign_in does not in Safari.
I am not totally satisfied with Digital Ocean Spaces.  It is very slow at time.

Posted in Uploading Files to DigitalOcean Spaces Discussion

Can you CDN digital ocean spaces?