Configuring cucumber with Radiant Application: The command > ruby script/generate cucumber does not succeed in case of Radiant application. Issues encountered: The command >ruby script/generate cucumber cannot be executed. It gives error “Couldn’t find ‘cucumber’ generator” Possible reason & solution: Seems that this is because Radiant Application does not use generator and looks for generators … Continue reading Cucumber Configuration with Radiant
blog
Variables initialization, assignments and swapping in ruby
Just a single line variable swap in rubyx,y=y,xExample:irb>> x = "Fun"=> "Fun"irb>> y = "Rails"=> "Rails"irb>> x,y = y,x=> ["Rails", "Fun"]irb>> p x"Rails"=> nil>> p y"Fun"Variable assignments in Rubywe can do multiple assignments in a single line.irb>> a,b,c,d = 1,2,3,4=> [1, 2, 3, 4]here is interpretation of above lineirb>> p "a => #{a} b => #{b} … Continue reading Variables initialization, assignments and swapping in ruby
Moving from backgrounDrb to DelayedJob
In my earlier post regarding DelayedJob setup I mentioned how to setup DelayedJob and create news tasks in your existing code. This post provides details of how to move from backgrounDrb to delayed_job. First of all its important to know why ? - BackgroundDrb takes in a lot of memory. It spawns worker at start-up. … Continue reading Moving from backgrounDrb to DelayedJob
