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.
redis-dump 0.1.2 (ALPHA) released
I just released a small cli tool and library to backup and restore Redis data to and from JSON. It’s alpha quality so don’t trust it, but give it a try if you’re interested in backing up your data to a known format (note: this is an unofficial Redis tool).
Why Use Single Sign-in Solutions in Rails?
Omar A. Mekky shows us how we can build single sign in solutions in Rails by previewing Authentasaurus for authentication and explains why they are useful. A guest blog post on RubyLearning.
Extending RedCloth with remote pygments for syntax highlighting.
I wrote a small tutorial for setting up a remote Google Apps instance to serve pygments for syntax highlighting when you can’t have Python installed locally on your server (e.g. on Heroku). Hope you’ll find it useful.
Fixing a gem with a broken C extension (ruby-opengl)
This post describes how to fix the nasty predicament that occurs when you try to install a gem that compiles a C extension, and the compilation fails. In particular, I describe how to fix the ruby-opengl gem which currently fails to install with Ruby 1.9.2.
2 small gems to facilitate Eventmachine socket connections and remote calls
I just launched em_remote_call. em_remote_call provides a simple Eventmachine server/client couple which allows the client to call methods within the server process, including local client-callbacks. [more inside]
Let's write a Reusable Sidebar component in Rails 3!
Just a brief tutorial on writing a sidebar widget for a Rails app without work-arounds like partials or presenters.
MacRuby - RubyConf Summary
I wrote a blog post explaining what I presented during my MacRuby talk at RubyConf 2010. You will also find my slide deck there and here is a PDF version.
jQuery Mobile Layout
I just created a mobile version of my site IntimateCooking using jQuery Mobile. The site is built with Ruby on Rails and shows how to use a different layout for mobile devices as opposed to just a different stylesheet. This post shows what the steps I took.
Announcing Fuubar
Announcing Fuubar: an instafailing progress bar formatter for RSpec.
6 Great Ruby on Rails 3 Learning Resources
I have been moving some projects over to Rails 3 and gathering some good resources on coming up to speed on Rails 3. I thought would share 6 Great Ruby on Rails 3 Learning Resources, I hope you find them useful.
awesome_print gem 0.3.1 released
The latest version adds full Ruby 1.8.6 compatibility and resolves the issue with Rails 2.3.x console. Check it out at https://github.com/michaeldv/awesome_print.
Configuring Your Rails 3 Plugin
I had some gaps in my knowledge about building gems using Railties especially around the issue of configuration. I figured I would share what I found out so that you can tighten up the code in your Rails 3 projects.
HAML Example with lots of links to other HAML resources
A before-and-after example of converting an erb file to HAML. Also contains lots of links to other HAML resources and various videos that I discovered in my HAML research. HAML example and other links.
Introducing ripl, an irb alternative
ripl is an irb alternative that is tested, documented and fully extendable with plugins. ripl already has plugins: some old ideas and some new. ripl also exists as a web shell using websockets.
Ssync, an optimised S3 sync tool using the power of *nix!
Ssync was born to solve one problem - to backup/sync to Amazon S3 efficiently without too much compromises and complexity. Give it a try and see if it works out for you. :) Check out the source code here.
JRuby and the JavaCC parser generator
Here’s a tutorial showing how to use JavaCC-generated parsers from JRuby. This lets you use any of these language grammars in your Ruby code.
RoR E-Commerce Contributors
I’m looking for contributors for ror_ecommerce. Currently its a one man show. I’m looking to build several Rack apps to customize functionality. Additionally I need help with documentation and extending the base functionality.
Substance — Data-driven document authoring in the browser
We just launched a very first demo of Substance, a data-driven document authoring engine. It may be used for any kind of online publication. Project and Demo
Rails Misapprehensions: What the fsck is MVP?
There’s a lot of confusion about MVC and MVP, especially in Rails people try to break out from the monolithic MVC approach by using Presenters and Cells. Help me to clarify this pattern, read, comment, discuss and please insult me, again!
Frank 1.0 static site non-framework
Frank 1.0 is done. This release includes publish support (export and publish html to a server) and frank templates (allows you to customize what a new project looks like).
Rails: Rendering the right view
How rendering the right view can make your Rails apps a bit less fragile.
awesome_print 0.3.0 released, adds support for object.methods
The latest version of awesome_print gem adds human readable formatting of object.methods that includes method arguments and owner class. It also features better compatibility with Ruby 1.9.2 and Rails 3. Check it out at https://github.com/michaeldv/awesome_print.
FancyIrb output
With the fancy_irb gem, you can set colors for the prompts, irb errors, stderr and stdout. Furthermore, you can output results as Ruby comment and modify the output value using procs.
Spree 0.30.0 Released
The first Rails 3.x compatible version of Spree is now officially released. Check out the Spree project if you’re interested in Rails e-commerce. Its open source, and completely free.
switch_user 0.4.0 released
Inspired from hobo, switch_user provides a convenient way to switch current user that speeds up your development, so that you don’t waste your time to logout, login and input email (login) or password any more. It can help you reproduce the user specified error in production as well.