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
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Web application Security Responsibility
Flicking of TV channels, clicks of mouse or the turning of newspapers pages would have inadvertently told you about the various hacking of mega corporations, with misappropriated data, personal and financial information. To read more, visit RailsCarma Blog
Permittribute
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…
Seeding a database using the Rails command line
When developing a Rails application, it’s important to seed the database with either manual or random data so the application looks realistic. There are some basic techniques to seed the database worth knowing that will save us time.
Tackling God Objects in Ruby
Latest post in my series on Domain Driven Design. This is how I break down the model layer using Entity and Record Objects
Issue #2 of RubyIssue(s)
A curated list of ruby related issues collected from GitHub. Bi-monthly email delivery. This second issue points to issues from spreecommerce, compass, rspec, lotusrb, capistrano and bundler. It also honors people fixing issues mentioned in the last issue.
Audio Extension For Simple Captcha
Simple Audio Extension for Simple Captcha..
Static Analysis in Ruby
This is a technique you can use when you need to extract information from the source code itself.
Planet Jekyll's Showcase - The World's Greatest Static Sites - Polymer, Bootstrap,...
Hello, To highlight the latest (and greatest) static sites generated with the Jekyll machinery I’ve started Planet Jekyll’s Showcase. Open source static Jekyll sites include: Bootstrap • Polymer • Planet Ruby • football.db • Choose A License • Stack Exchange Blog and many more. Any site missing? Add your site! Cheers.
Wildlife vibrant Sublime text theme
I made a vibrant sublime text theme. Feel free to check it out here
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. Read more
Cassandra & Ruby
A small guide covering my steps while learning Cassandra and using its Ruby driver:
Focus with well structured RSpec tests
Writing well structured rspec tests: Read more
Wrap Your Dependencies
Learn how to prevent dependencies in your application from spidering out of control and make your app reselient to change:
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
comp: Add function composition to Procs and Methods
A Ruby library to add function composition between Procs, Methods and any object that responds to call:
Subtle difference in implementation of ENV in MRI-ruby and JRUBY
ENV makes the environment variables of the running process available within a Ruby-script. But there is a subtle difference in implementation between MRI-Ruby and JRuby. Read this article to find out more.
Lessons Learned Building a Git-Based Knowledge Base for my SaaS product
In my latest post, I’m sharing what I learned using Jekyll/Ruby/Git to build a Knowledge Base, including a couple of liquid filters and plugins, and a freely reusable template which you can start from.
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.
Dr. Jekyll's Themes of the Month - July 2015 Edition - Holo Alfa, etc.
Hello, To highlight ready-to-fork themes for Jekyll I try to post the latest (and greatest) additions once a month. For the July’15 Edition let’s welcome: Holo Alfa by Stijn van Cuijk • { Personal } by Panos Sakkos • Jekyll Clean Dark by Pavel Makhov Any theme missing? Add your theme! Cheers.
RubySpec is Reborn!
RubySpec is now actively maintained at ruby/rubyspec and MRI, JRuby, Opal and various individuals are contributing to it. Any contribution is welcome! Read the story!
How to predict the future of programming
A lot of the problems we face as software developers don’t change. Sure, our solutions evolve. But the same solutions discovered by the last generation of developers can still help us today. So, do you want to know the answers to the problems you’ll face in the future? The best thing you can do is look to the past.
Dragonfly gem - auto-orient for all the images
A short post about auto-orienting Dragonfly picture attachments using ImageMagick auto-orient parameter.
YAML Quick Reference (Cheat Sheet) for Jekyll Datafiles @ Planet Jekyll
Hello, I’ve added another quick reference in the Planet Jekyll series. YAML examples for Jekyll datafiles include: List of Key/Value Records (e.g. books.yml) • Nested List of Key/Value Records (e.g. nav.yml) • Hash (Dictionary) of Key/Value Records (e.g. people.yml) • Multi-Line Strings • And some more. Questions? Comments? Welcome. Cheers.