This text is replaced by the Flash movie.

Posts Tagged ‘rake’

Annotate Ruby on Rails

February 11th, 2012
I want to try this annotate on rails which put lists of datafield to your build model, I'm trying this with windows 7, and produced a lot of bugs, number 1 error - the "annotate" gem, without version number I installed didn't work well, I learned that installing gem annotate need to have version number for the Ruby/Rails version I have, annotate 2.4.1.beta worked fine. Next after I run bundle install for the new gem needed and run annotate on command console, it popout an error

'const_missing': uninitialized constant Rake::DSL (NameError)

Error Annotate

After searching the net for solutions I found out that the new command for this annotate version with my current version of gems and ruby is just to run "bundle install annotate", and I checked the model and annotation worked.
Annotate Worked

Version I'm Running
-Ruby 1.9.2
-Gem Annotate 2.4.1.beta
-Rail 3.1.0

Final Gemfile Setup for Development
group :development do
   # gem 'annotate_models' -> this is fucking gonner
   # gem 'annotate' -> don't work
   # run in command bundle exec annotate
   gem 'annotate', '~> 2.4.1.beta' #for the error occuring a beta patch
   gem 'webrat' #important with rspec -> Rspec - undefined method `has_selector?' 
   gem 'rspec-rails'