Monthly Archives: March 2012

autotest with RSpec

1) gem install ZenTest 2) gem install autotest-rails 3) launch Autotest from the base directory of your Ruby on Rails project as follows RSPEC=true autotest “RSPEC=true ” for mentioning we are using RSpec References http://ph7spot.com/musings/getting-started-with-autotest   http://www.klairvoyant.in Advertisements

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

RSpec With Rails 3.1.2

1) Install the gems: $ gem install rspec $ gem install webrat $ gem install rspec-rails 2) add these to gem file and bundle install group :development, :test do gem ‘rspec-rails’ end 3)run the following in the project directory rails … Continue reading

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

using blueprint/basic with compass in rails 3.1.2

1) Add the compass-rails gem line to a group called :assets in your application’s Gemfile and bundle 2)bundle exec compass init rails –using blueprint/basic 3) copied app/stylesheets contents to app/assets/stylesheets 4) do as usuall with blueprint and with compass http://www.klairvoyant.in

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

create great looking, cross-browser compatible buttons in rails using compass extension named Sassy buttons

1) gem install sassy-buttons 2) add it to gem file and bundle gem ‘sassy-buttons’ 3) Import Sassy Buttons partial into your scss/sass file and use the mixin as the follows @import “compass/css3/border-radius”; @import “sassy-buttons”; #fir { background-color: red; @include border-top-left-radius(25px); … Continue reading

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

How to use compass in rails 3.1.2 with asset pipeline

1) Add the compass-rails gem line to a group called :assets in your application’s Gemfile and bundle 2) $ bundle exec compass init reference https://github.com/Compass/compass-rails/blob/stable/README.md 3) in your file (ex welcome.css.scss) add @import “compass/css3”; add the mixin(border-top-left-radius) as the following … Continue reading

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