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.
Fixtures v. Factories – Can’t We All Just Get Along?
Why not use both fixtures and factories to make your testing in Rails easier?
Introducing CoverMe - RCov-esque code co...
Introducing CoverMe - RCov-esque code coverage for Ruby 1.9.
Use multipart/alternative as content_type of email
I wrote an article about using multipart/alternative as content_type of email. Rails uses plain/text as the default content_type for sending email, you should change it to multipart/alternative that email clients can display html formatted email if they support and display plain text email if they don’t support html format. Check it here.
rufus-json
rufus-json is a ruby gem that lets you choose your JSON {en de}coding backend. It has a preference for yajl-ruby, but is happy with json, json-pure and active-support.
Mongomatic: Easily model your MongoDB documents
Mongomatic is a Ruby library that lets you easily model your MongoDB documents in your applications. [more inside]
Rails 3 upgrade part 3: Code fixes, views, and forms
In this part, I shared the issues related to views and forms I encountered while upgrading to Rails 3.
fgraph - awesome Facebook Graph Ruby API wit Ruby magic
fgraph - check it out and forget about facebooker and other clumsy solutions. Connect you application with Facebook as simple as possible. Here it is: http://github.com/jugend/fgraph. Thanks to jugend
Rails 3 upgrade Part 2: Routes
In the second part of my Rails 3 upgrade series, I worked on Rails new routes. Eventhough rails:upgrade:routes handles most the cases, you may still need to manually fix your new routes to work with Rails 3 and in this post I showed the changes I did.
Get Tweet Buttons in your Rails app
I just released a new gem for generating those fancy new Tweet Buttons from Twitter. Check out the code etc. over at Intridea’s Github.
Rails 3 upgrade Part 1: Booting the application
Part 1 of series of posts where I share my experience upgrading a Rails 2 application to Rails 3. In this post, I outlined the steps to upgrade and boot a Rails 3 app.
Bring Thinking Sphinx to Radiant CMS with the Sphinx Search extension
Find out how to bring the power of Thinking Sphinx to your Radiant sites with the Sphinx Search extension. You’ll learn how to install and configure the extension, and how easy it can be to add full-text search capability to any Radiant site.
The abominable Rails 3 snowman doesn't like Rack-Test
I’ve just written a blog post on how the Rails 3 snowman character breaks Rack-Test with Ruby 1.9 because of an encoding issue. You can read the full article here
Convet office format to another valid office format
In many application we have to convert one office format to another format like doc to html.To Convert using ruby convert_office plugin is used. More info you can found here railstech.com.
Building a Refactoring Talk: Part I
Lately, I’ve been working on a talk I’m doing on refactoring. I’ll be this giving talk at Ruby Hoedown 2010 in early September in Nashville, TN and at Sunnyconf in Phoenix, AZ later in the month. More…
Rails Best Practices: 4 - Put method in the right model
I wrote the 4th post of my Rails Best Practices Series:“Put method in the right model” [more inside]
A faster and leaner object mapper
Swift is yet another attempt at a faster and leaner ruby object mapper. It’s meant to be simpler, functional and fast. No bells and whistles yet but heap loads of performance is guaranteed :)
Natural date and time parsing in Ruby and Rails
I’ve written a quick intro tutorial on using Chronic and Chronic Duration to parse user-entered date/time strings (“tomorrow,” “8/12/10,” “next tuesday”) and duration strings (“3 minutes 45 seconds,” “2 hours”). I like using these in conjunction with fancy datepickers in my applications. Hope you find it useful.
Presos on Social networks, testing, Sinatra and DB optimization
Here are several presentations from our latest meetup on Ruby on Rails. You are welcome to comment
Setting up a Ruby project with Hudson for Continous Integration Testing
CI Testing is a must for multiple developer projects. Here are some instructions to quickly get setup with CI testing using Hudson
This is the continuation of the Rails 3 ...
This is the continuation of the Rails 3 Build a Blog series. This episode includes implementation of the Edit and Destroy methods on the Posts Controller. There are a lot of things left to cover on Rails 3, but this gets you the basics of the MVC framework and how to use Cucumber to build your application using BDD.
You're cuking it wrong
I’ve been seeing what I perceive to be an anti-pattern in cucumber features: mixing in code into the feature. Check it out!