Resourceful Routing: If you’re building a RESTful JSON API , you want to be using the Rails router. Clean and conventional mapping from HTTP to controllers means not having to spend time thinking about how to model your API in terms of HTTP . URL Generation: The flip side of routing i...
March 05, 2012 Posted by John Tagged gauges and kestrel Older: More Tiny Classes Misleading Title About Queueing I don’t know about you, but I find it super frustrating when people blog about cool stuff at the beginning of a project, but then as it grows, they either don’t take the ti...
Load Podcast S02E08: Nina Mehta Featuring Ines Sombra Nina Mehta Published: March 5, 2012 Engine Yard’s Ines Sombra interviews Twilio designer Nina Mehta about inspiration, working with HCI and the changing landscape of tech journalism. 0:00 All about Nina 1:00 HCI and Journalism 2:00...
Tarantula : A fuzzing plugin that spiders your application looking for problems. Via Stuart Halloway’s post on Revelance’s blog: “It crawls your rails app, fuzzing inputs and analyzing what comes back. We have pointed Tarantula at about 20 Rails applications, both commercial and open ...
versionist: A plugin for versioning Rails 3 based RESTful APIs Posted by bploetz on March 05, 2012 — 0 comments versionist Comments Post a Comment Comment abilities for non registered users are currently deactivated, pending time to add a proper CAPTCHA to solve the escalating spa...
method_profiler: Find slow methods in your Ruby code Posted by Perceptes on March 05, 2012 — 0 comments MethodProfiler collects performance information about the methods in your objects and creates reports to help you identify slow methods. The collected data can be sorted in various ...
Parsing an HTML / XML Document From a String We’ve tried to make this easy on you. Really! We’re here to make your life easier. html_doc = Nokogiri::HTML("<html><body><h1>Mr. Belvedere Fan Club</h1></body></html>") xml_doc = Nokogiri::XML("<root><aliens><alien><name>Alf</name></alien>...
Ruby on REST 4: Using Representers in Rails Posted by apotonick on March 05, 2012 — 0 comments The fourth post in the "Ruby On REST" series explains how the roar-rails gem helps using Roar's representers in Rails REST services. Following the fruit and bowl example it discusses how to ...
Web application frameworks are made to help developers building web applications. Some of them also help you with securing the web application. In fact one framework is not more secure than another: If you use it correctly, you will be able to build secure apps with many frameworks. R...
Monday, March 5, 2012 at 5:51AM Week of February 26-March 3, 2012 The big news this week is the switch to requiring whitelisting all Active Record attributes by default. (See Double Shot #831 for some of the nonsense that led up to this). The impact is simple: you need to add an attr_...
[ANN] Rails 3.2.2 has been released! Posted by aaronp March 01, 2012 @ 06:12 PM Rails 3.2.2 has been released. This release contains various bug fixes and two important security fixes. All users are recommended to upgrade as soon as possible. CHANGES For information regarding the poss...
My wife now has my “old” cell phone number (I got an iPhone 4, she kept the 3GS and my number). Unfortunately for her, that number is still on my resume (and there’s no legitimate reason to change it; anyone who actually needs to reach me still can since, you know, she’s my wife). But...
Monday, March 5, 2012 at 5:32AM Long weekend out with the Boy Scouts helping people clean up after tornadoes. Puts a lot of this software nonsense in perspective. wow how come I commit in master? O_o - Big kerfluffle over the weekend when this commit appeared in Rails master. The bott...
Mongoid is an ODM (Object Document Mapper) Framework for MongoDB, written in Ruby.
The problem we have here is that code you’re working on is unstable and can’t be trusted, which means you can’t really use it to test anything either. That’s testing broken code with broken code and it can get very confusing very fast.
Mass assignment is something most Rails programmers make use of as it provides an easy way to populate the properties of a model object from a form. Unfortunately its simplicity can make it a target for hackers. We’ll explain how and show you how to solve it in this episode.
A new short XML Parsing Algorithm implemented directly in >500 lines. An easy-to-use XML Parser without any Native Dependencies. [How To Use]: https://github.com/abhishekkr/rubygem_xml_motor/raw/master/README Loading: + $ gem install xml-motor + 'require' the 'xml-motor' Usage: [[ To ...
Semaphore is looking for beta testers Posted by markoa on March 05, 2012 — 0 comments Semaphore , a new continuous integration app for Rails projects, is looking for beta testers. It can import any GitHub repository, while the set up & build process is made completely automatic. Comme...
Mission Control: The Trajectory blog : I’m very pleased to announce the availability of Campfire integration with Trajectory. This was one of our most requested outstanding features from customers, and like most things in Trajectory, it’s something we’re going to use the heck out of o...
今までのサンプルコードでは、「最小限のフレームワークの上に、必要な機能を盛り付ける」という、言ってみればビュッフェスタイルの開発を意識しています。要するに、Sinatra と言う皿の上に、ロガー、キャッシュ、ヘルパー、認証と言った料理をたくさん盛り付けていくわけです。逆に、Rails のようなフレームワークはフルコース・スタイルであるといえるかもしれません*2 。 どちらが絶対的に良い、ということは一概には言えないでしょう。ただ、筆者の考えとしては、このビュッフェスタイルの開発は、上手にやれば気を回すべき関心事が適切に分離されるので、バグを追いかけやすく、またテス...
A tiny piece of Rack middleware to set the default Accept: header
under Creative Commons Attribution-Share Alike license now. Available formats are Illustrator/SVG/PDF/PNG.
I hate to intrude upon your instruction, but I’ve already walked all over it enough to warrant some further disregard. Can I go over my next project with you? I’ve pledged to write another book. (Trombones .) The good news is that I won’t actually be writing any of it. You won’t have ...
Polymorphic routes allow drying up the controller implementation when functionality is identical, regardless of entry point. A good example is comments for articles and blogs. There is a challenge to balance the implementation of the comments controller reflecting the multiple incomin...