ramonrails

Joined 8/7/2017
# Name
ramonrails said over 1 year ago:

I added a small script to manage puma-dev easily. Basically all scripts suggested above, in a bash script.

Here is the gist https://gist.github.com/ramonrails/d7056dd8af8c583f56493903fefbdb0c

Thank you.

PS: Nice video series. Keep going. Open source community is great! I hope my tiny contribution helps.

ramonrails said over 1 year ago:

Should you also include this in the notes?

class Image < ApplicationRecord # :nodoc:
  attachment :image, type: :image
end


kobaltz PRO said over 1 year ago:

Thanks for the heads up. I've updated the show notes.

ramonrails said over 1 year ago:

# config/initializers/refile.rb
Refile.store = Refile::Backend::FileSystem.new(Rails.root.join('public', 'uploads', 'refile_store'))

Maybe this config can be included too in the article. It allows to persist the uploaded attachments properly.

Without this config, the uploads just stay in system tmp or cache folders and eventually get purged.


ramonrails said over 1 year ago:

You may use a combination of

  1. http://guides.rubyonrails.org/association_basics.html#polymorphic-associations
  2. https://github.com/stefankroes/ancestry

for some super awesome threaded hierarchical comments system. Ancestry is optional, just to get some cool queries and filters easily without writing them from scratch.

Hope it helps. Good luck.