coding posts

Read about our day to day discoveries, the trips we take around the world, our personal developments and news about the things we do at Manas.

  • On the previous post I wrote a few lines on the basic usage of the accepts_nested_attributes_for method in rails models. I strongly recommend reading that post before this one if you haven’t. Although there is...

  • Rails makes it easy to build HTML forms associated to a certain model. Simply using the form_for instruction on the view, writing a simple update method in the controller and setting validation logic on the model, makes standard CRUD...

  • I just found out the difference between += and << when used for a string. irb(main):001:0> str = 'chan' => "chan" irb(main):002:0> str.object_id => 69952758899780 irb(main):003:0> str += 'ged' => "changed" irb...

  • I searched the internet for a gedit plugin that would allow me to press a key and jump (navigate) to the file where a ruby class is defined. I couldn't find one so I wrote one (I know about Geany but I couldn't find that functionality...

  • In a previous post I mentioned a few ways of dealing with i18n of strings in ASP.NET pages with gettext. Now it’s time for javascript code. Although javascript code in ASP.NET pages can be internationalized using...