Archive

Posts Tagged ‘rspec’

Creating a restful-resources application in rails

July 12th, 2009 Comments off

I am creating a rails application and I haven’t used rails in 2 years and, of course, version 2.2.2. So I thought that I had better record my major steps. I also needed to learn how to use rspec with rails (rather than the unit tests).

Update all the gems

gem update 

Install the plugins

  sudo gem install rspec
  sudo gem install cucumber
  sudo gem install rcov
  sudo gem install rspec-rails
  
  script/plugin install git <-- rspec
  script/plugin install git://github.com/phorsfall/rspec_on_rails_nested_scaffold.git
  script/plugin install git://github.com/activescaffold/active_scaffold.git

Install Jquery

  ./script/plugin install http://ennerchi.googlecode.com/svn/trunk/plugins/jrails
  

Tutorial for logins

git clone git://github.com/activefx/restful_authentication_tutorial.git new_folder

./script/generate rspec_scaffold Skill name:string category_id:integer description:string

Categories: Uncategorized Tags: , ,