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.
Recently I had to debug Resque jobs failing because of a mysterious Resque::DirtyExit error. The documentation online is not helpful so I thought about sharing what I discovered here. [more inside]
The first step in learning RSpec is to understand the basic structure of the
it flow. The next step is to learn the most common helpers to effectively structure your specs. Read the tutorial.
Do you really need to delete data from you database? Or is there a better way? https://intercityup.com/blog/marking-records-as-deleted-without-removing-the-data.html
I recently ran into the situation where I had to validate an attribute across multiple models. It can be beautifully solved with a ActiveSupport Concern and I blogged about it today. Check it out and let me know what you think in the comments!
I created a blog to talk about how to customise Devise to support Multi-tenancy authentication. Enjoy!
Interrobang: convert your
bang_methods! without abusing
method_missing. There’s also a nifty aside in the README about testing rescue handlers. Also, did you know that
method! were lifted from Scheme?
Here https://github.com/TheBlasfem/ruby-patterns i’m sharing examples about ruby patterns, learned following the course https://code.tutsplus.com/courses/design-patterns-in-ruby
Want to learn how to write your very own Caesar cipher encoder? Have a read :) http://www.blackbytes.info/2015/03/caesar-cipher-in-ruby/
Points I’ve learned about getting things done with programming. http://6ftdan.com/allyourdev/2015/03/28/work-flow-and-making-progress/
Hello, over at the Planet Ruby the Gem of the Week series continues with #13 - props - yet another config (INI) reader - that lets you read in configuration settings in the Windows-inspired INI format and lets you link up settings in hashes in a lookup hierarchy and so on. Full article. Cheers.