To render view from another controller# In rail 2.3render "controller/action"# In rails 2.2 or belowrender :template => 'controller/action'To render partial from another controller's views folderrender :partial => "controller/partial"Cheers !Sandip
blog
vi / vim Shortcuts
Open filevi filenameAs i am newb on linux macine, i dont know vi shortcuts.so, i am listing down shortcuts which i am getting familier. :)Insert in fileiExit fileqforced exitq!save filewqforced savewq!Copy no of linesyyPaste copied linesppUndo changesuuDelete linesddTo search and replace string in vi :%s/search_string/replacement_string/gTo find particular word in file?string1If you have any quick list. … Continue reading vi / vim Shortcuts
Working with multiple ruby versions on same server
click for original postNice post by Michael GreenlyI recently changed how I'm handling multiple simultaneous Ruby installations and I'd like to share.What I needed was to make it convenient to switch between the system provided packages and specific, from source, installations. After some experiments I decided to use 'update-alternatives' to do it.Here's a quick walk … Continue reading Working with multiple ruby versions on same server
