samchen2009 / ekanban

a kanban plugin for redmine
102 stars 42 forks source link

Redmine 2.3.3 needs to bundle with specific version of haml (not the latest) #62

Open mbdevpl opened 10 years ago

mbdevpl commented 10 years ago

@fk0 thank you very much for your comment in #12 !

In my environment, namely:

Redmine version                2.3.3.stable
Ruby version                   2.0.0-p247 (2013-06-27) [x86_64-linux]
Rails version                  3.2.13
Environment                    production

The latest haml causes the following errors in ekanban:

Started GET "/kanban_states/setup" for x.x.x.x at 2013-10-22 00:59:16 +0200
Processing by KanbanStatesController#setup as HTML
  Current user: ___ (id=_)
Missing template, responding with 404
  Rendered common/error.html.erb within layouts/base (0.4ms)
Completed 404 Not Found in 37ms (Views: 26.9ms | ActiveRecord: 0.6ms)
Started GET "/projects/phinite/settings" for x.x.x.x at 2013-10-22 00:44:27 +0200
Processing by ProjectsController#settings as HTML
  Parameters: {"id"=>"phinite"}
  Current user: ___ (id=_)
  Rendered projects/_form.html.erb (18.8ms)
  Rendered projects/_edit.html.erb (22.3ms)
  Rendered projects/settings/_modules.html.erb (3.9ms)
  Rendered projects/settings/_members.html.erb (17.9ms)
  Rendered projects/settings/_versions.html.erb (4.2ms)
  Rendered projects/settings/_repositories.html.erb (4.6ms)
  Rendered plugins/ekanban/app/views/common/_tabs.html.erb (62.9ms)
  Rendered projects/settings.html.erb within layouts/base (64.4ms)
Missing template, responding with 404
  Rendered common/error.html.erb within layouts/base (0.2ms)
Completed 404 Not Found in 105ms (Views: 15.4ms | ActiveRecord: 2.5ms)

After changing to the earlier version of haml, the problem was resolved. I write here just for the benefit of others.

I would like to request the addition of this discovery in the documentation, cos in some cases (I'm not sure in what exactly) you should add:

gem "haml", "3.1.8"

to your Gemfile instead of the typical:

gem "haml"

, before running bundle install.

And in case you already have this problem, just use the solution provided by @fk0 in comment to issue #12 .

samchen2009 commented 10 years ago

My haml is 4.0.3, it works with redmine 2.3.0, but I didn't get a chance to try 2.3.3.

mbdevpl commented 10 years ago

I'm puzzled... I was under the impression that the latest version of haml messed something up, but it seems that the matter is not so trivial. You may close the issue if you wish to do so, I just wanted to leave a note about my findings in case someone runs into the same problem.

Currently I'm not debugging/testing this - ekanban works now in my env. All of the features I've tested so far work, and overall it is pretty cool :)

fk0 commented 10 years ago

The Redmine I'm using is version 2.3.3 so I think it's worth testing exactly these both versions together.