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.
ActiveRecord inheritance and contexts
Read about how to DRY controllers and handle validation and attr_accessible contexts in the ActiveRecord inheritance and contexts article.
Single Responsibility on Rails Explained
Here’s my take on SRP in Rails mentioning TDD and good old unit testing.
Speedup Rails Asset Pipeline precompile process
Here are my three tips for speedup asset pipeline precompile process: 1. Capistrano deployment speedup 2. Use @import carefully. 3. don’t require .scss & .coffee for no reason [more inside]
Book Review: Exploring Everyday Things with R and Ruby
RubyLearning’s mentor Victor Goff reviews Sau Sheong Chang’s latest book “Exploring Everyday Things with R and Ruby”. A must-have book for your library.
cinch-yaml-score 1.1.0 released + more gemified plugins for cinch
I just released cinch-yaml-score 1.1.0, it is simple gemified cinch plugin for keeping track of score for users. It is first update for set of gems I have released for RVM irc bot - smfbot: cinch-yaml-keywords, cinch-url-scraper and cinch-yaml-memo.
'Cookie Law' rack-policy
I’ve released v0.4 rack-policy gem with new Rails/Sinatra/Padrino view helper that helps you manage cookie policy information in your templates.
Tracking Inventory (E-commerce Tips 1.3 (Inventory))
So many people start having issues tracking inventory when their e-commerce app starts getting a lot of traffic. I made a blog post to discuss some solutions.
Deployment Pipeline (Let's make Continuous Deployment painless)
I just saw a tool that can ease Continuous Deployment, check it out.
Drop-in replacement for Rails textilize helpers (w/o dependencies)
My colleague just released textilize, a drop-in replacement for the old textilize helpers in Rails 2.x. If you are updating an older app to Rails 3.x, it may be of use. Textilize is different from other textile gems that exist because includes the pure ruby version of RedCloth written by _why. Other gems require the new 4.x version of RedCloth that needs to be compiled. We just have a few small uses for textilize, and needed something that worked without any extra dependencies. Hope you can find it useful too.
RubyConf Argentina's Call For Paper is open!
The second edition of RubyConf Argentina will be held October 19/20, and, just like last year, will be dedicated to Ruby and other related technologies. Submission of proposals is through rubyconfargentina.org. Don’t forget to provide your contact information and a brief abstract of your talk.
How I Learned To Code
An excellent article by Natasha Murashev on “How I learned to code”. In her own words “Learning to code is a very emotional experience. When you can’t solve a problem, you will feel like a worthless human being. But when you do solve it, you will feel like you own the world, which is one of the best feelings you’ll ever have. And no matter how ‘good’ you get, there will always be something that you don’t know or doesn’t work and that you can continue improving on or learning.”
rerun 0.7 - no-frills command-line alternative to Guard and Autotest
I just released rerun 0.7. It now uses the Listen library which uses your OS’s built-in filesystem change monitoring features so CPU use is much more efficient. [more inside]
Command Line Basics
Do you remember how hard it was to get started programming? If you do surely you remember a time before you knew Command Line Basics, if you or someone you know is new to this whole programming thing or maybe new to the command line, the will certainly get something out of this introduction to the command line.
Testing Rails controller security with RSpec shared examples
An example of using RSpec shared examples to test the seven common RESTful actions in Rails controllers.
A Review of MVC
I just published A Review of MVC, including a quote by the creator of MVC, Trygve Reenskaug. It’s just an interesting snippet I find integral to understanding MVC in practice.
Practicing Ruby volume 1 + 2 manuscripts now on github
I have been wanting to do this for a while, and now I have finally put the markdown-based manuscripts for the two publicly released volumes of Practicing Ruby on github. Please feel free to remix them however you’d like: revisions are welcome, as are translations. I’ll keep updating this repository as I gradually release more content over time, but if you want immediate access to Volume 3 and 4, you’ll need to sign up over at practicingruby.com.
Lesson Learned From alias_method_chain
I just blogged about what i leaned with alias_method_chain. Hope you find it useful, Lesson Learned From alias_method_chain
Vim advanced search and replace
I blogged about a few advanced search and replace techniques in Vim: multi-line searches, look-arounds, expressions, ranges, counters, the command-line window and the star of the show: the global command.
Rails 3 upgrade process (the road from 2.3.14 to 3.2.6)
Rails 3 upgrade process (the road from 2.3.14 to 3.2.6)
UT on Rails: Week 4 Routing
Come learn all about URLs, HTTP, State, and REST in this week’s series. Videos broken down by topic and exercise all included, enjoy!
Debugging HTTP Proxy - RFC
Hi, I’m hacking away at a proof-of-concept debugging http proxy that allows you to intercept https? requests and record, rewrite, redirect & mock response using rack apps. [more inside]