RubyFlow The Ruby and Rails community linklog


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

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.



We sometimes face scenarios where we need same permitted attributes for a model in different controllers and end up re-writing all attributes again (violating DRY). Permittribute is meant to: - reuse same permitted attributes at different locations/controllers. - scope permitted attributes base on roles like admin, api etc. - group permitted attributes at a single reference point in their respective scopes. Read more…

Created new package (Eventsims)

Feel free to download my new package called Eventsims . It is a Ruby package for simulating discrete events and workplace scenario. A similar package that I made for Python users is called Eventsim and has an extra feature than the Ruby one. It can be found on the Pypi website

How to make $100K from OSS

Technical firms and individual developers release open-source as a low cost marketing strategy, then use other montization methods to profit from their hard work. [more inside]

Delayed Job Gem for CSV

It is essential to have a fast server as the delay in processing can literally kill a business’ revenue stream and frustrate the users. The speed of a website is the actual time it takes for a web page to load on the screen after being requested by the browser. Now consider a scenario where you need to use huge database and send emails to a list longer than the Wall of China. Exaggeration or not, sending emails to a long list of people will take time, increasing the processing time which will slow the server and annoy the users. To read full visit : Railscarma Blog

Exception handling and testing it with Minitest

Exception handling is not something we always think of in advance. Instead of being proactive, we are almost always reactive. We wait for the disaster to happen and than we adapt our code for it. In my last blog post I cover some exception handling techniques and how to test them using Minitest. Check it out here.

Loading older posts