Implementing Full Text search for your Rails application

Posted about 1 year back at Blogging Rails

Sorry, if you have been hoping to see something interesting about Rails and Ruby over here at BloggingRails. I am just so tied up with PayScroll development that I totally neglected this blog. But, good news is, I am going to somehow bring this back into my daily work schedule and start writing about Rails, [...]

PayScroll Alpha Launch dissected.

Posted about 1 year back at Blogging Rails

So we finally managed to push PayScroll out the door last Saturday and the alpha users are now happily searching and “payscrolling” away. As a Rails developer, I hope to share some experience we have so far with the alpha launch. Most startups are secretive with accessing the alpha or beta test sites, but we [...]

Mysql Replication Adapter from Rapleaf dev

Posted about 1 year back at Blogging Rails

The twitter does not scale was quite a hot topic of discussion that spun off talks that Ruby/Rails is the dog?? and PHP the dog food? awhile back and now thanks to the good fellows at Rapleaf, there should be no reason to say it takes 300 to scale a Rails app. Rapleaf just released [...]

Who is and What is Blogging Rails?

Posted about 1 year back at Blogging Rails

I’m glad that I have finally typed the very first paragraph of the blog post for Blogging Rails. Blogging Rails has been ringing in my head for the past few months and I’m so glad that it’s finally out. So what the heck is Blogging Rails? Well as simple as it sounds, it’s basically [...]

What Rails deployment tools do you use for DB management?

Posted about 1 year back at Blogging Rails

When it comes to deployment in Rails, the one and only tool that comes to mind is Capistrano. No doubt that is the only tool that helps with deploying source code updates to your production server/s. By the way, don’t you just love the Capistrano logo Anyway, back to what I was trying to [...]

Creating Classes with Prototype

Posted about 1 year back at Maintainable Software Articles

Creating Classes with Prototype

Rails, Internet Explorer, and Parallels

Posted about 1 year back at Maintainable Software Articles

Rails, Internet Explorer, and Parallels

DRY up testing in Rails with Autotest

Posted about 1 year back at Maintainable Software Articles

DRY up testing in Rails with Autotest

Rails Logging Tips

Posted about 1 year back at Maintainable Software Articles

Rails Logging Tips

Minifying Your Rails Javascript

Posted about 1 year back at Maintainable Software Articles

Minifying Your Rails Javascript

Testing Javascript in Rails

Posted about 1 year back at Maintainable Software Articles

Testing Javascript in Rails

Custom Rescue Templates for Rails

Posted about 1 year back at Maintainable Software Articles

Custom Rescue Templates for Rails

slow query raiser plugin

Posted about 1 year back at Snax

module SlowQueryRaiser
  TIME = 0.75
  RAISE = (RAILS_ENV == 'development')
  
  class SlowQueryError < StandardError
  end  
end

module ActiveRecord
  module ConnectionAdapters
    class AbstractAdapter

      def reset_runtime_with_raising      
        runtime = reset_runtime_without_raising
        if runtime > SlowQueryRaiser::TIME

          msg = "Query is too slow (took #{runtime} seconds)"
          if SlowQueryRaiser::RAISE
            raise SlowQueryRaiser::SlowQueryError, msg
          else
            RAILS_DEFAULT_LOGGER.warn "** #{msg}"
          end
        end            
        runtime
      end

      alias_method_chain :reset_runtime, :raising      
    
    end
  end
end

mongrel 1.0.2 release candidate

Posted about 1 year back at Snax

Release candidates for Mongrel 1.0.2 and its dependencies are out. See the announcement and a brief discussion of the changes.

You heard it here first, because I made the release. :)

pm: Print Methods

Posted about 1 year back at Not So Stupid

Ruby has a very convenient method to inspect objects: "p". It just prints the result of "inspect". And it's exactly what irb uses to show the result of each expression. Anyway, the cool guys at projectionist just posted a little method of theirs called "m", which provides easy access to an ...


1 ... 466 467 468 469 470 ... 634