Articles tagged 'ubuntu'

  • Rails 3.1 "rails server" error Could not find a JavaScript runtime

    September 19, 2011


    This post was originally published in the Rambling Labs Blog on September 19, 2011.


    I upgraded to rails 3.1.0 and created a new ‘test_app’.

    rails new test_app
    

    Got into the directory. Everything was fine, until I tried to run:

    rails server
    

    It threw a weird error:

    Could not find a JavaScript runtime.
    See https://github.com/sstephenson/execjs for a list of available runtimes.
    

    That’s kinda weird. What does a rails app have to do with any JavaScript runtime? I guess it’s support for something that I still don’t know anything about.

    I googled that and found a stackoverflow question. So, two solutions for the issue: either*** install nodejs*** or include “gem ‘execjs’” and “gem ‘therubyracer’” in the Gemfile and run bundle install.

    Pick...

    Continue Reading →

  • RubyMine vs Vim: my point of view

    September 18, 2011


    This post was originally published in the Rambling Labs Blog on September 18, 2011.


    So, I tweeted a question earlier today about what editor is preferred by the rubyists and, although I didn’t get many answers, it, combined with a recent discussion I had about RubyMine vs Vim later, helped me clear my reasoning a bit.

    By my reading of Agile Web Development With Rails and some people I follow on twitter, it seems that all the cool geeks use Vim (or TextMate or Emacs) for Ruby and Ruby on Rails programming instead of any IDE.

    I once googled to find out that vim was way complicated to set up. That same time, I found akitaonrails vimfiles on github. Fairly easy to set up if you just follow the instructions. But today I realized that there...

    Continue Reading →