Posted on October 14, 2010, 1:48 am, by Mayank Jain (makuchaku).
Ever wondered how can you have something like this <% some_helper do %> Some text here <% end %> Well, here how it is… def some_helper(&block) content = capture(&block) concat(“this comes before the block”, block.binding) concat(content, block.binding) # adds “Some text here” to the view concat(“this comes after the block”, block.binding) end Neat! Isn’t it
Posted on June 16, 2010, 10:17 pm, by Mayank Jain (makuchaku).
If you have ever experienced this… …you know how painful it is to debug and rectify. This error was so common that Microsoft created a knowledge base (KB927917) article for this. It even has a dedicated explanation at the IE Blog. The error basically is – “HTML Parsing Error: Unable to modify the parent container [...]
Posted on February 12, 2010, 9:58 am, by Mayank Jain (makuchaku).
Just bought “Programming Ruby 1.9” from Flipkart. From For Blog When I joined IBM ISS UI team and my tech lead suggested that we should start doing things in Rails- and I was prompt enough to pop up a suggestion – “that why don’t we use Python based web app frameworks Django or Turbo Gears [...]
Posted on October 19, 2009, 1:28 pm, by Mayank Jain (makuchaku).
Posted on October 8, 2009, 7:25 pm, by Mayank Jain (makuchaku).
Medium: www.vimeo.com Link: www.vimeo.com Rails 3 Update by Yehuda Katz from Wind City Rails 2009 You just can’t ignore his style of explaining things!
Posted on September 28, 2009, 1:02 am, by Mayank Jain (makuchaku).
The methodology is very simple. Redirect the user to grant access to your app for a particular Google service. Once access is granted, use the authentication token to retrieve information related to the user. I demonstrate this with a very simple & idiotic Sinatra app which actually does nothing intelligent – apart from just outputting [...]
Posted on September 27, 2009, 7:19 pm, by Mayank Jain (makuchaku).
With Jaunty, the location of installed gems has been moved to /var/lib/gems while it was /usr/lib/ruby in releases before. Please follow http://intertwingly.net/blog/2009/04/25/Rails-on-Jaunty for more on how to rectify the problem that might arise.
Posted on August 28, 2009, 1:54 am, by Mayank Jain (makuchaku).
With an Amazon EC2 instance up, next very obvious task was to get the hosting up. Objective was to host static content along with multiple Rails apps on the same EC2 instance. Purists might not agree to this, but getting up and running was the first target. Apache is configured with DocumentRoot as /mnt/app/shared My [...]
Posted on August 3, 2008, 9:31 pm, by Mayank Jain (makuchaku).
Drawing boards are so much more fun than paper’n pencil
Posted on April 24, 2008, 3:13 am, by Mayank Jain (makuchaku).
Introducing – LITBox Helper for Rails! Disclaimer: This is a work in progress and is available on “as is” basis. For long, I was trying to integrate Criag Ambros’s RedBox plugin into ApnaBill.com project for implementing modal dialogs but somehow, the CSS always used to get upset, rendering the lightbox in such a way that [...]