Testing restful & polymorphic resource routes on rails console

>Testing restful & polymorphic resource routes on rails consoleOpen rails consolerails c # In rails 3ORruby script/consoleapp object of URL>> app=> #<ActionController::Integration::Session:0xc164fac @result=nil, @status=nil, @accept="text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5", @path=nil, @request_count=0, @application=#<ActionController::Dispatcher:0xc1644f8 @output=#<IO:0x85e34ec>>, @remote_addr="127.0.0.1", @host="www.example.com", @controller=nil, @https=false, @request=nil, @headers=nil, @cookies={}, @status_message=nil, @named_routes_configured=true, @response=nil>Root URL>> app.root_url=> "http://www.example.com/"Plural paths>> app.calls_path=> "/calls"Singular routes>> app.audio_call_pathActionController::RoutingError: audio_call_url failed  >> app.audio_call_path(1)=> "/calls/1/audio">> app.audio_call_path(13)=> "/calls/13/audio">> app.audio_call_path(13, … Continue reading Testing restful & polymorphic resource routes on rails console

Pro tip: Increase webpage performance using sprite, data-uri and jammit

For quite some time at Josh Software, we have been concentrating on improving backend server performance. You can read about load testing and bench-marking and improving upload performance using nginx upload module. This post is about improving frontend performance by getting your pages to  load faster using techniques like sprites, data-uri and jammit. These tools … Continue reading Pro tip: Increase webpage performance using sprite, data-uri and jammit

Do you need a Push Notification Manager? – Redis PubSub to the rescue

Happy New Year! And its indeed an awesome start to a surely prosperous year -- my stunts with Redis PubSub worked ! We have been looking at getting a push notification manager in place to communicate between applications! Here is what we wanted to do: Applications should be able to subscribe for notifications. Notification wildcards … Continue reading Do you need a Push Notification Manager? – Redis PubSub to the rescue