Blog Archives

Use Railroady to generate UML diagrams for your project’s controllers and models

Introduction Railroady is a Railroad fork, a Ruby On Rails diagram generator for models and controllers. If you are using Rails 2.3.x with Ruby 1.8.7 checkout Railroad gem. Otherwise use Railroady with Rails 3.x. Both gems are using graphviz open

Tagged with: , ,
Posted in Ruby On Rails

cannot load such file — mkmf

Installing bcrypt-ruby give this error: Installing bcrypt-ruby (3.0.1) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.     /usr/bin/ruby1.9.1 extconf.rb /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require’: cannot load such file — mkmf (LoadError)     from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require’     from extconf.rb:36:in `<main>’ This has a dependency

Tagged with: , ,
Posted in Ruby On Rails

Invalid date format in gemspecs

Spotted several lines with invalid date format when installing a gem invalid date format in specification: “2011-08-25 00:00:00.000000000Z” While one can go through the gems specs and fix the format, one can just install rubygems-update sudo gem install rubygems-update Then

Tagged with: , ,
Posted in Ruby On Rails

Error installing json and Failed to build gem native extension – Windows specific

After updating Windows bundle install and gem install json gives the following error ERROR: Error installing json. ERROR: Failed to build gem native extension. Found solution here. In my case it happen after Windows update and “Scenario B” worked for

Tagged with: ,
Posted in Ruby On Rails

Capistrano keep_releases and releases clean up

Capistrano keeps last 5 releases by default. You can override this in your deploy.rb file set :keep_releases, 10 This however will not clean up your releases until you run cap deploy:cleanup in the console. For automatically cleaning up the releases

Tagged with: , ,
Posted in Ruby On Rails

Web application deployment

In agile web application development it is a must to use deployment tool to sync your code with a staging server. I got the idea for some time from a presentation of a colleague of mine for Fabric witch is

Tagged with: , , ,
Posted in Articles, Linux, PHP, Ruby On Rails

Send file for download with ajax

No matter there are sources that state downloading a file with AJAX is not possible there are many queries to do that and of course there is a way to do it. Downloading a file with AJAX has a trick

Tagged with: , , ,
Posted in Articles, Browsers, JavaScript, Ruby On Rails

Curl development headers with SSL support – libcurl-devel for CentOS

Installing Phusion passenger takes two simple steps, but hot always. Especially when you are new to some distro or some conception. You may have some disconfiguration in the system and fixing the dependencies may take a lot of time. That’s

Tagged with: , , ,
Posted in Apache, Linux, Ruby On Rails

CakePHP DebugKit analog for Ruby On Rails – RackBug installation

I am using Ruby on Rails for a project and I was searching for a similar tool like DebugKit in CakePHP, but for Rails and found RackBug. The both tools provide you with debug information, database queries, request details and

Tagged with: , , ,
Posted in Ruby On Rails

Installing Ruby gem on Windows 7 – json (1.6.5) – Unfortunately, a fatal error has occurred.

I was setting up a new project in Ruby and get the message Installing json (1.6.5) Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Thanks!

Tagged with: , ,
Posted in Ruby On Rails
Sites
Categories
Archives