Monthly Archives: January 2013

Error gem not installed

solution gem list -d rake from the output get the installation path and execute the command as follows gem uninstall –install-dir /home/john/.rvm/gems/ruby-1.9.3-p362@global rake -v 10.0.3 here rake is gem name and 10.0.3 version of the gem source http://railsforum.com/viewtopic.php?id=28313   http://www.klairvoyant.in

Posted in rails, ROR, ruby on rails, web development | Tagged , , , | Leave a comment

Error:- ActionView::Template::Errror (application.css isn’t precompiled)

Rails assumes that you have your files precompiled in the production environment. if want live compiling (compile at runtime) set as the following in the file config/environments/production.rb config.assets.compile = true for better performance in production want to set config.assets.compile to … Continue reading

Posted in rails, ROR, ruby on rails, web development | Tagged , , , | Leave a comment

use of “respond_with”

Useage class UsersController < ApplicationController::Base respond_to :html, : xml, :json      #(In order to use respond_with, first you need to declare the formats your controller responds.) def index respond_with(@users = User.all) end def create @user = User.create(params[:user]) respond_with(@user, :location … Continue reading

Posted in rails, ROR, ruby on rails, web development | Tagged , , , | 1 Comment