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.
Zero Downtime Delayed Jobs
Just posted about a script I created to do zero downtime delayed job restarts. Please check it out and give any feedback! [more inside]
DNS to CDN to Origin
Content Distribution Networks (CDNs) such as Amazon CloudFront and Fastly have the ability to “pull” content from their origin server during HTTP requests in order to cache them. They can also proxy POST, PUT, PATCH, DELETE, and OPTION HTTP requests, which means they can “front” our web application’s origin like this: DNS -> CDN -> Origin.
How to Add Comments to Rails App with Commontator
I’ve wrote tutorial about how to add comments in Rails using commontator gem.
A new version of middleman-presentation is available
I released a new version of middleman-presentation:
Version Number
To make it easier to build and maybe reuse a presentation, you can now add a version number to your presentation
Custom Slide Template
Now it is possible to define a custom slide template.
Easier creation of themes
Now there’s a helper command available which makes theme-creating a lot of easier.
Footer for your presentation
Now middleman-presentation displays a footer on each slide (from the 2nd slide on) with your name, the copyright and the version number
Language detection for new presentations
Now it tries to guess what’s the best language to use (based on the LANG-environment variable) when you create a new slide using the slide-command
Make debugging of slides easier
With this release you find HTML-comments with the file name in the rendered output.
beer.csv - Open Beer Data in Plain Text (CSV) Fixtures w/ Ruby Build Scripts
Hello, Using Ruby build scripts, that is, rake tasks, I’ve built up a new GitHub org, that is, beer.csv - for open beer data in the CSV (comma-separated values) format, that is, plain old text. To get started I’ve added - for a change - beer statistics such as production, imports, exports, consumption, consumption per head, etc. for countries. Cheers. Prost. Salud. Kampai.
Call for submissions: Ruby on Rails Interview Questions
Check out Toptal’s new community-driven list of great Ruby on Rails interview questions. We’ve begun with an initial sampling of questions. Read them, comment on them, or even contribute your own. [more inside]
Rails logging into several backends
Found a simple way to make several logging facilities in Rails.
Avoid AngularJS Dependency Annotation with Rails
Annotating AngularJS inject dependencies got you down? Using Rails? Try disabling variable mangling during JavaScript minification to alleviate your woes.
Customize Minitest Assertions and Expectations
Minitest earns a lot of praise for being simple to pick up, but did you know that you can add your own custom assertions and expectations to make your tests read the way you want them to?
rails_param : easily validate and convert your controllers parameters
Here is a new gem which will help you validate and convert your Rails controllers parameters in a clean & readable way.
Nuts & Bolts #2: Run a Rails production console with Capistrano (and RVM)
We all love to enter the Rails console to try out some stuff. It’s just a rails c away in development, but what if you want to view or fetch some specific data on your remote production server (and you’re not on Heroku)? [more inside]
Add OAuth to a Rails App Using Sorcery
We recently added OAuth to to our Rails app that uses Sorcery for authentication and wrote a tutorial for it. [more inside]
Your mini-Heroku with Dokku and Dokkufy
I’ve just released a gem called Dokkufy to make running your own mini-Heroku using Dokku a whole lot easier and more pleasant.
Benefits of Using Ruby on Rails for Web Development
I was reading Benefits of Using Ruby on Rails for Web Development . I am impressed too much. I have two website Flarian and Promtionaldrives .I want to redevelop websites,suggest me can I do this? Anybody can help me.I will pay to ruby developers please contact me through my websites. Thanks, Robert
Shaking off your TDD fatigue with a few quick tips
You want to test-drive some code, but you’re stuck. Maybe you’re not totally sure what your object’s interface should look like. You might not be sure you can test what you’re thinking of building. Or you could be procrastinating, because you just don’t feel like writing tests right now. How do you get the benefits of TDD when you don’t feel like TDDing?
How to Add Voting to Rails App
In short tutorial, I will explain how to use acts_as_votable gem to create voting system in Rails app.
Announcing Wombat(Spree) Integration with Salesforce
Spree has created Wombat, an automated e-commerce solution. We are proud to announce that we have integrated it with Salesforce! Now, you can easily bring all your client’s information straight into Salesforce. And yes, it’s open source! Grab one at Announcing Wombat (Spree) Integration with Salesforce.
Knapsack - Optimal tests distribution on CI servers
Parallel specs across CI server nodes based on each spec file’s time execution. Knapsack, a new gem created by Artur Trzop, generates a spec time execution report and uses it for future test runs. [more inside]
Quick tips for doing file operations in Ruby
Just a couple tips of stuff we commonly have to do in Ruby when doing file operations.
finite_machine 0.9.0 release
The finite_machine got even better. The major addition is ability to create your own state machine definitions by subclassing FiniteMachine::Definition. What are you waiting for? Try it out and let me know what you think
ActiveResource relations – a bit of magic to make it look and feel more like ActiveModel relations
ActiveResource can be pretty helpful when you have a RESTful JSON API. Although it has some limitations. One of the most irritating is a lack of nested resources #new scope method. Luckily there’s a way to make it work exactly as its ActiveRecord equivalent. For more details, plese refer to this post: ActiveResource relations – a bit of magic to make it look and feel more like ActiveModel relations
paperclip-deflater 0.0.6 Release!
I just released paperclip-deflater 0.0.6. You can gzip attached files before you upload them through paperclip.