-
Recent Posts
Recent Comments
- Raif on Tips for building Nuget packages
- joshuaflanagan on Coordinating multiple ajax requests with jquery.when
- Kalina Todorova on Coordinating multiple ajax requests with jquery.when
- joshuaflanagan on How we handle application configuration
- Richard Brown on How we handle application configuration
Archives
- March 2012
- February 2012
- January 2012
- October 2011
- August 2011
- June 2011
- May 2011
- February 2011
- January 2011
- November 2010
- October 2010
- September 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- September 2008
Categories
Meta
Category Archives: ruby
A Better Solution For Partial View Controllers
A few days ago, I wrote about using the Cells gem to create an encapsulated segment of my app, with view and controller, etc. Well, this didn’t work out so well after all. Aside form the initial problem of `content_for` … Continue reading
Cleaning Up Rails Helper Methods With A Helper Class: Good Idea, Bad Idea, Or ‘Meh’?
I found myself writing a very ugly helper method in my rails ApplicationHelper module: def render_program_dashboard(patient_program) key = patient_program.program.key content_for :css do stylesheet_link_tag “#{key}/patient_program” end dashboard_instance = nil dashboard_class_name = “#{key.to_s.classify}::ProgramDashboard” begin dashboard_class = dashboard_class_name.constantize dashboard_instance = dashboard_class.new(patient_program) rescue Rails.logger.info … Continue reading
Cells: Partial Controllers And Views For Rails 3
I’ve got a sort-of meta-application that I’m building in Rails 3 for a client. The core of the application is a framework on which we build various “Programs” that a patient can participate in. On the Patient Profile screen, a … Continue reading
Hacking Websites with Ruby and Nokogiri
Every once and a while we get a chance to use software for the good of others. Last week I had just that opportunity. The story begins with a website called Cinematical. Cinematical is a website dedicated to movies of … Continue reading
Also posted in composition, structuremap
3 Comments
Solving Some SSH Issues For Deploying Rails Apps
So you think “The Rails Life” is all unicorns, rainbows and glitter? Yeah. Guess again. Right now it feels more like a glitter cannon shredding a unicorn into a rainbow colored bloody pulp… Joey and I are deploying our rails … Continue reading
Providing Unauthenticated API Access To An Authenticated/Authorized Controller In Rails 3, With Devise And CanCan
My current Ruby on Rails app defaults to every page and controller action in the system requiring authentication. If you’re not logged in, you don’t get to do anything other than see the login page. Once you are logged in, … Continue reading
Installing Ruby 1.8.6 And RubyGems On OSX (Snow Leopard) With RVM
RubyGems no longer supports Ruby v1.8.6, so when I tried to install 1.8.6 on my Macbook, via RVM, I ran into this nice little error message: The interesting bit is that ruby itself installed. It’s only RubyGems that didn’t install … Continue reading
Validating Xml Against XSD Schema In IronRuby
There’s a thousand examples of how to validate an xml document against an xsd schema in C# around the web, but I had a hard time finding one that worked in IronRuby. So I translated some of the C# examples … Continue reading
How To Have Bundler Load A Gem From The Vendor Folder Into A Rails 3 App
I have a rails 3 app that needs some specific functionality that is built into a gem. Unfortunately, the current gem that is published on RubyGems.org only works with rails 2. I was able to get the gem to work … Continue reading
Responding To Growl Notification Clicks With MacRuby
In my last post, I detailed the process of setting up a MacRuby app to send Growl notifications. To get even more mileage out of Growl, though, it’s a good idea to response to various interactions with the notifications that … Continue reading
