The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
I have shared my experience building a very minimal Sinatra app to host test files with basic auth in this post.
Hello, I’ve updated the kramdown-service / kramup library and tool that lets you start your own local live markdown editor browser app and json http api service w/ sinatra v2. Enjoy. Cheers. Prost. PS: Did you know? kramdown can convert markdown to latex instead of “classic” hypertext markup too.
When Rails adds a large new feature like Active Storage, it takes some time before good Internet resources and documentation become available for it. This can be a challenge when learning how to use the
variant method for image transformations. Not only does it take a lot of options, but the format of those options isn’t obvious. To make it easier, check out the resources and tips I’ve compiled here: http://www.carlosramireziii.com/what-options-can-be-passed-to-the-active-storage-variant-method.html
Don’t create another layer of abstraction between you and client https://codecoding.net/ruby/on/rails/2018/09/14/dont-talk-crud.html
I recently learned how to Curry in Ruby and turns out it’s pretty easy to do https://medium.com/@sengming/currying-in-ruby-bea5ba6fae8e
As ruby-graphql do not come with the built-in authorization support, we’ve come with our own solution https://github.com/anjlab/graphql_authorize . Right now we support only CanCanCan and Pundit for checking abilities (and of course passing procs), but it’s fairly easy to extend it. Feedback and contributions are welcome!
The 2018 CodeDaze conference in Buffalo is a general topic tech conference with a lean towards tackling the real hard (people) problems. Talks by Avdi Grimm, Mark Bates, Coraline Ada Ehmke, Adrian Roselli, Kerri Miller, and other wonderful people: https://blog.phusion.nl/2018/09/19/codedaze-2018-buffalo-ny/
WeTransfer’s Julik Tarkhanov and @GitHub Developer Advocate Don Goodman Wilson on file formatting and automating issue triaging at yesterday’s Amsterdam.rb, Amsterdam Ruby meetup: https://blog.phusion.nl/2018/09/19/fun-stuff-with-files-and-bots/
in this article we’re going to explore the following topics:
We’re considering dropping support in Passenger for RHEL/CentOS 6, Debian 7 and Ruby 1.8, these old distros slow down our development process and prevent us from using C++11. What do you think? Let us know: https://github.com/phusion/passenger/issues/2119
In this article, we’re going to explore the following topics:
This is part two of series “How to use DRG CMS for creating fully functional internal portal application” https://www.drgcms.org/blog/Damjan%20Rems/create-internal-portal-application-in-few-minutes-2018-09-13 . Installation should not take more then 5 minutes of your time. Most of the time will be spent on compiling nokogiri gem. [more inside]
Full validation support for Active Storage attachments won’t be arriving until Rails 6. Until then you’ll need to write your own custom validators to add this missing functionality. Last time I showed you how to write an attachment presence validator. Next I’ll share a validator which can restrict the content-type of your attachments. Drop this bit of code and its accompanying RSpec matcher into your project to tide you over until the next Rails release. http://www.carlosramireziii.com/validating-the-content-type-of-active-storage-attachments.html
In this article we’re going to explore the following topics: