Skip to main content

Posts

Showing posts with the label ruby on rails

RubyConf 2013 at pune..retrieved from drafts

A great experience while interacting with the ruby community from different places. Lots of knowledge and inspiration flows. Met many folks from india and abroad.
Start using regex   The below definitions have been pulled from  Regex Basics just to have a basic understanding before we start practising. I have just displayed some basic things used and would keep updating the post as the time permits. Literal     A literal is any character we use in a search or matching expression, for example, to find ind in windows the ind is a literal string - each character plays a part in the search, it is literally the string we want to find. Metacharacter     A metacharacter is one or more special characters that have a unique meaning and are NOT used as literals in the search expression, for example, the character ^ (circumflex or caret) is a metacharacter. Target string     This term describes the string that we will be searching, that is, the string in which we want to find our match or search pattern. Search expression     Most commonly called the regular expression. T...
Basic steps to setup RVM The next time you decide to install ruby for multiple applications, rvm is the best option to handle various versions easily. Just follow the below steps which i have compiled to make things clear and easy: Install rvm,Ruby 1.9.2 and rails 3.0.0 Execute the commands as specified: $ which ruby $ $ sudo apt-get install curl git-core ruby $ bash < <( curl https://rvm.beginrescueend.com/releases/rvm-install-head ) $ vim $HOME/.bashrc You need to replace the line that says         [ -z "$PS1" ] && return with         if [[ -n "$PS1" ]]; then Now add this to the last line of the file         if [[ -s $HOME/.rvm/scripts/rvm ]] ; then source $HOME/.rvm/scripts/rvm ; fi         f i Reload the environment by running $ source ~/.bash_profile or restart the terminal Now enter, $ rvm notes This lists the packages to be installed for various ...