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.
Unobtrusive object deletion in Rails, the easy way
Out of the box, Rails requires a HTTP DELETE request to process object deletion, but this requires JavaScript or a form, which isn’t ideal. A few simple changes can improve this situation, for the concise solution continue reading unobtrusive object deletion in Rails…
rack_mailer - A form mailer for any rack compatible webapp
rack_mailer provide a simple drop-in ability to send data posted to a form to an e-mail address with minimal configuration. Can send an auto-responder, provide basic spam protection and built on the mail gem.
sendgrowl (sendmail via Growl)
sendgrowl is a simple Bash script for Mac OS X which redirects sendmail to Growl. Messages piped to the sendmail binary are displayed as Growl notifications instead and - when clicked - the entire message is opened in a Quick Look preview window. Quite useful for Cron output and - to some degree - for developing Rails apps which send mails.
Cut & Polish: A Guide to Crafting Gems
As part of the RubyC conference in Kyiv, I spoke about how to build and publish gems, along with best practices for doing so. I focused on building gems from scratch - not via Jeweler, Hoe, etc - so people can understand every part of the puzzle. Both the video recording and slides are available via my blog, should this take your fancy.
Acceptance Testing with Responsive Layouts
How to resize the browser window for your Capybara/Selenium tests if your website has a responsive layout: Acceptance Testing with Responsive Layouts.
Amazon Cloudfront CDN on Rails
A concise guide on how to setup your Rails app with Amazon’s CloudFront CDN - it’s a great way to provide better front-end performance and with the asset pipeline, it’s really not that difficult to implement!
Literate programming with Github and Markdown
As a developer using Github, we often find ourselves browsing other people’s code. Sometimes it’s out of curiosity, sometimes it’s because we need to make a maintenance task, but in either case, it’s something valuable because peer review is a fantastic way to gain experience. more
Improving University Course "Agile Development with Ruby" Part I
Few years ago I started delivering course Agile Development with Ruby at the Faculty of Mathematics and Informatics of Vilnius University . I delivered and tuned this course for 4 semesters so far, but I think there are still unsolved issues and plenty space for improvements, so I’ll write problems I faced teaching students in this series of posts and I would like get your feedback.
Take a Swing at Ruby Golf
Darran Jones has started a Ruby Golf competition over at Rubysource. Head over and try to make par…the winner of each hole gets a Sitepoint book.
Pakyow 0.7.0
We’re proud to announce Pakyow 0.7.0, available now. This release includes several bug fixes, new features (hooks, pakyow-mailer, and more) as well as significant performance improvements. Detailed release notes can be found here.
snowday just released
I just released snowday, a RSpec formatter to make you feel all warm inside. Like hot chocolate.
RubyLearning.org Seeking Help and Suggestions For New Course
RubyLearning.org is planning a free, online course on topics that hopefully will help those that have some knowledge of Ruby programming to get started with web programming - call it “Intermediate Ruby Programming”. This does not cover Ruby on Rails. [more inside]
rails_best_practices 1.4.0 released
I just launched rails_best_practices 1.4.0, it adds RemoveUnusedMethodsInControllersCheck, check out the changelogs here.
Different bundler versions in multiple Gemfiles -> matching_bundle
matching_bundle looks into your Gemfile and picks the correct bundler version. (pass any argument as you would pass to bundle, e.g. install, update, …) gem install matching_bundle && cd project && matching_bundle
How to Make Gem Patches with Gem Edit
A blog post on using gem edit to add quick patches to ruby gems.
Tutorial and Example App for Rails with Subdomains
My RailsApps tutorials and starter apps have been well-received (thanks!) and today I completed a new one. You can find the example app for Rails 3.1 Subdomains in the GitHub repo. The Rails 3.1 Subdomains Tutorial is in the GitHib wiki and you can find an application template for a Rails starter app on GitHub as well. The example app shows how to build an app with “Basecamp-style” use of subdomains using Mongoid for a datastore and Devise for authentication. As always, please try it, copy, fork and submit issues so all may benefit.
Nyan Cat RSpec Formatter
I watch a lot of tests run in a given day. So I figured why not make it more fun. So I created Nyan Cat RSpec Formatter gem. (Includes Screencast)
Convert Ruby Regexp to JavaScript RegExp
One line monkey patch. Limited use case but this works for most conditions I could find.
Convert Ruby Regexp to JavaScript RegExp
One line monkey patch. Limited use case but this works for most conditions I could find, I hope this helps someone else.
Dotfiles for insane productivity in git, rails, vim
I released my dotfiles including two character mnemonics for common commands in bash/git and vim files with single letter capital mnemonics for all kinds of code navigation.