Check out this SlideShare Presentation: Using Thinking Sphinx with railsView more presentations from saz wqa.
Author: sandipransing
alias methods in ruby
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
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
