I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

Support #2284

Updated by Andriy Lesyuk almost 10 years ago

Environment:
Redmine version 2.5.0.devel.12986
Ruby version 1.8.7-p352 (2011-06-30) [x86_64-linux]
Rails version 3.2.17
Environment production
Database adapter Mysql2
Redmine plugins:
redpress 0.0.1b

To get it installed I had to do the following:

Received error: @undefined undefined method `named_scope' in red_news_patch.rb:7:in `included'@ `included'
I changed @base.named_scope(:visible@ base.named_scope(:visible to @base.scope(:visible@. base.scope(:visible.

I then tried to migrate plugins again and:
Received error: @uninitialized uninitialized constant ActionDispatch::Routing::Routes in routes.rb@ routes.rb

I changed:
<pre><code class="ruby">
ActionController::Routing::Routes.draw do |map|
map.connect('session.:format', :controller => 'red_press', :action => 'index', :conditions => { :method => :get })
map.connect('projects/:id/menu.:format', :controller => 'red_press', :action => 'project_menu', :conditions => { :method => :get })
map.connect('news/:id/migrate', :controller => 'red_press', :action => 'migrate_news', :conditions => { :method => :get })
end
</code></pre>


to:
<pre><code class="ruby">
RedmineApp::Application.routes.draw do
match 'session.:format', :controller => 'red_press', :action => 'index', :via => :get
match 'projects/:id/menu.:format', :controller => 'red_press', :action => 'project_menu', :via => :get
match 'news/:id/migrate', :controller => 'red_press', :action => 'migrate_news', :via => :get
end
</code></pre>


I was then able to migrate the plugin.

My question is did any of that break the plugin? I am having issues getting Wordmine working.

I will update this with a link to my Wordmine post.

Back

Terms of use | Privacy policy