Alias method in rubyRuby classes provides a alias_method that can be used to reuse the existing methods.Consider a situation where you need different methods which has same code and ONLY they have different names.In this case alias_method uses suits best choice instead duplicating same code orwriting common method that will get used in all methods, … Continue reading alias methods in ruby
Month: March 2010
Scottish Ruby Conference 2010 roundup-1
Following some inspirational talks with some great folks at Scottish Ruby Conference, I am going to apply the pomodoro technique for this blog post - 25 minutes of writing on this post! These are just some of the things you get to learn at this no-nonsense conference, which is full of geeks, innovators and innovative … Continue reading Scottish Ruby Conference 2010 roundup-1
nginx and thin installation and configuration
Install nginx server using following commandapt-get install nginxEdit nginx configuration and add server block inside html block. server { listen 80; server_name boost; root /home/sandip/rails_app/public; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect off; if (-f $request_filename/index.html) { … Continue reading nginx and thin installation and configuration
