Shrine
PaperClip
Shrine | PaperClip | |
---|---|---|
9 | 9 | |
3,204 | 9,061 | |
0.2% | - | |
5.2 | 0.0 | |
8 months ago | almost 2 years ago | |
Ruby | Ruby | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Shrine
-
You Can Make Postgres Scale
https://github.com/shrinerb/shrine/discussions/665
I've never personally encountered this, but I've seen other HN contributors mention it.
From what I can tell, unlike mongo, some postgres queries will try to update the entire JSONB data object vs a single field. This can lead to race conditions.
-
Hanami Shrine - file handling in Hanami
We will be using shrine and I want to start this post by saying a few words about it.
-
[Poll] How do you handle file attachments in your Rails app in 2023?
Shrine is great, has more features and a simpler API (imo) than ActiveStorage https://shrinerb.com
-
I've done a mistake when I've chosen ActiveStorage (Rails 7. Start Kit, Release 1.7)
Don't you know `carrierwave` and `shrine` work already with this secure way to name folders/files? - https://github.com/carrierwaveuploader/carrierwave - https://github.com/shrinerb/shrine
-
A First Look at Hanami 2 for Ruby
In general, even though the Hanami ecosystem lacks any "plug-and-play" solutions such as Devise, you can use many existing libraries not tightly coupled to Ruby on Rails. For authentication, you can use Warden, OmniAuth or Rodauth. For uploads there is Shrine. The pagination is built into ROM. Integration with exception catchers such as Rollbar is easy.
- If you use shrine, lock net-protocol to < 0.2.0 for now
-
Image Uploading with Shrine
Once I knew I wanted to upload images I stated to look around for different ways to do so. I came across a gem named shrine which can be found here https://shrinerb.com/. This is were the hard part came in. Aside from installing the gem like normal, there was a second step that needed to be done to allow images to be rendered. I needed to install https://imagemagick.org/index.php ImageMagick onto my system. After this I was able to add images.
-
is it possible to convert a json string into a StringIO or other file-like object?
A [file field submission](https://github.com/shrinerb/shrine/wiki/Adding-Direct-S3-Uploads) (without Dashboard/Webcam) takes hidden_field :image, value: @photo.cached_image_data and a file_field :image selection in the form, then does this in console when saved:
-
Shrine Photo Uploader – Galeria de Fotos
Toolkit: Shrine
PaperClip
-
Test Data Libraries for Elixir
The factory library ExMachina created by Thoughbot uses function names and generates an atom used to call factories. For example:
-
Please critique my rather simple portfolio website
Take a look at https://thoughtbot.com/ for a dark themed site. The site has both a light and dark theme which is triggered by your system setting (on macos: System Preferences > General > Appearance)
-
Get help from thoughtbot for free (mentoring / office hours)
I work at thoughtbot, you might know us for our open source work like administrate, factory_bot or shoulda-matchers.
- How for God's sake can any coding work be outsourced, horrific experiences
-
Ask HN: How do I pivot into SWE from being a stay-at-home dad?
FWIW, Boston is where Thoughtbot is headquartered; their apprenticeship program might not be exactly what you're looking for, but they also have a lot of useful introductory resources.
https://thoughtbot.com
-
Ask HN: Who wants to be hired? (November 2021)
Location: Charleston, SC
Remote: Yes
Willing to relocate: Probably not
Technologies: Rust, Elixir, Ruby, Blockchain, Solidity
Résumé/CV: https://docs.google.com/document/d/1RK7hqiLKhMhXcopzG8oKDGhC...
Email: [email protected]
Hello,
After working at [thoughtbot](https://thoughtbot.com/) for five years I just finished building my own blockchain. Moonshine Exchange has realtime transaction settlement and pulled in >$100K in liquidity organically without any outside funding. I'm looking for my next gig, not necessarily in the blockchain space. Rust and Elixir preferred but open to any technology!
-
Software engineers at the end of the day
You could even be crazy and ask https://thoughtbot.com/ for a job and say you're willing to intern. If you get thoughtbot in your cv you're good for life.
-
Any recomendations for a good technical document / blog platform?
Any suggestions of a good place to host such a blog? We all love thoughtbot.com, but unless they want to hire me unfortunately I'm not going to be able to post there ; ). I've considered a few platforms, but most feel incomplete for what I'm looking for.
What are some alternatives?
CarrierWave - Classier solution for file uploads for Rails, Sinatra and other Ruby web frameworks
Refile - Ruby file uploads, take 3
DragonFly - A Ruby gem for on-the-fly processing - suitable for image uploading in Rails, Sinatra and much more!