This text is replaced by the Flash movie.

Archive for the ‘Ruby on Rails’ Category

Heroku Refinery

March 26th, 2013
Was having hard time running refinery dashboard on heroku.

I posted Logs/Errors/How I fixed - on Gist

Made the dashboard run finally on heroku

Discourse – Project

March 10th, 2013
Excited with our new project with rails using discourse, locally it run without problem using vagrant. Hope it will be successful with heroku and redis.

Vagrant running discourse. Discourse local test

Discourse on github

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
-Rake 0.9.2.2


Final Gemfile Setup for Development
1
2
3
4
5
6
7
8
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'
end