Posts Tagged ‘ror’

Using Factories to Do Ruby on Rails Rspec Test

Posted in ruby on November 7th, 2010 by Aditya – Be the first to comment

Sometimes we need certain instance of model class to perform certain test. In this example we are going to test for showing instance of user via RSpec. This test obviously will require the use of an instance of the User model. I do this test using a technique called factories.
read more »

Enable rails to send delete

Posted in ruby on October 20th, 2010 by Aditya – Be the first to comment

For some reason I do not know, web browsers can’t send DELETE requests natively. So the following line of code will not work. read more »

Ruby on Rails lockfile_parser.rb undefined method NoMethodError error

Posted in ruby on October 5th, 2010 by Aditya – 2 Comments

In short, I have been playing with both Ruby and Rails3 and Git for the first time. Everything looks OK until I decided to restart rails server. Afterward, all rails related command (rails s, rails console and such) stopped working. Here’s the output from the command line. I put my ruby (which is 1.9.2. in c:\Ruby192)

read more »

Convenient setting for .gitignore for Ruby on Rails app

Posted in ruby on September 26th, 2010 by Aditya – Be the first to comment

Taken from http://railstutorial.org/book. Git has a simple mechanism to ignore files that are inconvenient to be git-ed: configuring .gitignore in the Rails root directory can tell git some rules which files to ignore.
read more »

Setting up your first Rails application in Windows 7 and more

Posted in ruby on September 25th, 2010 by Aditya – 10 Comments

Most, if not all, Rails applications start through the same way: rails command. The command essentially creates a skeleton Rails application in a directory of your choice. To get started, make a directory for your Rails projects and then run the rails command to make the first application. read more »

Set Up SQLite3 for Ruby on Rails Development in Windows

Posted in ruby on September 24th, 2010 by Aditya – 4 Comments

The SQLite3 installation on Windows was really straight forward and easy although it may be documented rather obscurely. The main thing is to download the pre-compiled version of SQLite3 (at this moment 3.7.2) from the SQLite web site. read more »

Installing Ruby on Rails development environment from scratch in Windows 7

Posted in ruby on September 22nd, 2010 by Aditya – 4 Comments

In this tutorial, I will show you how I install RoR development environment in Windows 7. I will be using Ruby 1.9.2. , Pik 0.2.8 and Rails 3.0.0. While Pik’s usage might be not clearly explained in this post, its kinda useful. read more »