> Our Rails3 (beta4) application had one route mapped in config/routes to a Sinatra app, by means of the following route: match ‘/foo’, :to => EndPointApp, :as => :endpoint The route was being defined to run as a Sinatra Application require ‘sinatra’ class EndPointApp < Sinatra::Application post '/foo' do … end end This was working [...]
Archive for the ‘Ruby on Rails’ Category
> I remember one of the early talks at the Canada On Rails in 2006 had a slide showing how many books one needs to read to be able to write web applications in Rails, versus Java. Of course Java side had about 10 books: Java SE, Java EE, Hibernate, Struts/Tiles/JSF, WebServices, Ant, Maven, Eclipse, [...]
>Integer Division with Modulus in Ruby, using Linear and Binary Search
Posted: June 26, 2010 in Ruby on Rails, Technology> I was recently chatting with someone about algorithms, and we were talking about efficient algorithm for implementing integer division with modulus, and how to make it efficient for large integers. The following code snippet shows a class that implements two division methods, linear and binary. I wonder if there is a more elegant way [...]
>Techtarget’s Java ServerSide Symposium 2009 Impressions
Posted: March 22, 2009 in Ruby on Rails, Technology> Just got back from Vegas where between Wednesday and Friday a small-ish java conference was taking place. This was my second one, the first being five years ago in 2004. Of course it’s hard not to compare, and I find myself doing it anyway… I can’t help but feel that the excitement has left [...]
><!– I rarely rant about software. Reliable software is hard to make, and I know this because that’s what I do for living myself. But once in a while I come across such ignorance that a rant is really all I have left. I’ve been coding in Ruby on Rails for over two years now, [...]
>Ruby on Rails Hosting: From HostingRails to RailsMachine in a shake of a tail
Posted: October 16, 2007 in Ruby on Rails, Technology> Rails hosting is a hot subject, and with everyone asking everyone else about their experience, I thought its only fair to share my own experience, even though it is relatively limited. Introduction I started with a shared “professional” hosting plan from HostingRails. It was around $30/month, and included non-root SSH access to a shared [...]
Ruby on Rails Hosting: From HostingRails to RailsMachine in a shake of a tail
Posted: October 16, 2007 in Reviews, Ruby on Rails, TechnologyThis posting has moved: Ruby on Rails Hosting: From HostingRails to RailsMachine in a shake of a tail
>On Ruby on Rails with PostgreSQL, and Acts as Paranoid
Posted: September 25, 2007 in Ruby on Rails, Technology> Back a few years ago I was researching differences between PostgreSQL and MySQL databases, and chose PostgreSQL because at the time it supported foreign key constraints and many other fantastic SQL extensions that make developer’s life a lot easier. Today I am sure MySQL is just as functional as PostgreSQL, and it does appear [...]
On Ruby on Rails with PostgreSQL, and Acts as Paranoid
Posted: September 25, 2007 in Ruby on Rails, TechnologyThis post has moved: On Ruby on Rails with PostgreSQL, and Acts as Paranoid
Ruby on Rails: Reducing clutter in actions by placing common code in filters
Posted: September 7, 2007 in Ruby on Rails, TechnologyThis post has moved: Ruby on Rails: Reducing clutter in actions by placing common code in filters