Daniel Morales

Joined

11,410 Experience
113 Lessons Completed
0 Questions Solved

Activity

Awesome Chris, thanks for your response!

Very helpfull as always, thanks Chris!

Quick question:

  • What would happen in the hypothetical "exaggerated" case of upgrading the Digital Ocean plan to, say, 256GB of memory. All other things being equal, would this fix the loading speed and overall site performance without the need to optimize the frontend, assets or cache?

Posted in Direct File Uploads to S3: Part 2 Discussion

This gem is so tricky... Actually Shrine.plugin :direct_upload is deprecated and we would use signed plugin. But, this is not just the problem, aws console seems like if it would be updated every week and obviously this tutorial is outdated. I had a lot of problems with aws gem and console, and if you have a problem with permissions, maybe this would fix them

To manage the bucket, you need to grant the s3:* action for the bucket you designate. AWS policies designate resources by their Amazon Resource Name, or ARN and for S3 buckets, they look like: arn:aws:s3:::bucket-name-here. So to grant your user full access to your bucket, you’d paste the policy:

{
  "Statement": [
    {
      "Action": "s3:*",
      "Effect": "Allow",
      "Resource": [
        "arn:aws:s3:::4ormat-knowledge-base",
        "arn:aws:s3:::4ormat-knowledge-base/*"
      ]
    }
  ]
}

Now, you would think that this would be enough to enable the user to use the S3 console to manage the bucket, but you’d be wrong. Turns out the user needs one more permission to do the initial listing of the buckets in order to be able to select a bucket, and its called s3:ListAllMyBuckets. You need to add that permissions too, and it looks like this:

{
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "s3:ListAllMyBuckets",
      "Resource": "arn:aws:s3:::*"
    }
  ]
}

http://mikeferrier.com/2011/10/27/granting-access-to-a-single-s3-bucket-using-amazon-iam/

Posted in Direct File Uploads to S3: Part 2 Discussion

You rocks!

Posted in Stripe integration on Ruby On Rails

Hi Chris,

I was dealing with this same error for days!!!! and with this responses you solve my problem!!! So many thanks!!! AMAZING TUTORIALS!

Posted in Group Chat with ActionCable: Part 7 Discussion

Excelent Series!!... everything works perfect!

Posted in Group Chat with ActionCable: Part 4 Discussion

Same error here

Posted in Select Or Create Field With Selectize.js Discussion

Hi Chris Great Tutorial and it works for me! BUT I have one question. I'm trying to associate one or various categories to one post and see them on post show views?.

You have has_many_trhough association but in your controllers I didn't see anything related with this type of associations. I'm searching about that and I found things like append, create, build and other methods. Then the question is, how can I associate one or various categories to one post on post show views for this particular tutorial?? I was spend 2 hours on that and I can't figure it out :(

If you can help me... Thanks!

great! super useful!

Posted in Exporting Records To CSV Discussion

Never mind! I solved this issue in the next episode :)

Posted in Exporting Records To CSV Discussion

Hi Chris! Thanks for this Episode... I think would be great if all the screencast have the source code in github, because sometimes the video explanation is focused in some part of the code, and the other part you've previously wrote. I'll hope that in the most recent episodes the code will be up. For now I have and uninitialized constant User::Import error, and I don't know how to solve. I saw code without explanation in your user_controller.rband I think that my problem is in User::Import but I can't solve the problem :(