redmine

Impossible to delete a flash

天涯浪子 提交于 2019-12-12 02:42:28
问题 I made a mistake before migrating a plugin, and have written flash[:notice] = :label_presta_added instead of flash[:notice] = l(:label_presta_added) I corrected my mistake but it seems that my Redmine Plugin has trashed my Redmine. Even though I delete my plugin a migrate once again, I still get this error: Started GET "/" for 127.0.0.1 at 2016-06-01 22:21:37 +0200 Processing by WelcomeController#index as HTML Current user: admin (id=1) Rendered welcome/index.html.erb within layouts/base (28

What terminal command stops webrick server besides Ctrl-C?

做~自己de王妃 提交于 2019-12-11 23:56:11
问题 We are using Redmine. The mysql adapter segfaults in the mornings when the first Redmine operation is attempted, e.g. clicking on the Projects menu. Redmine works perfectly after Webrick is manually restarted. The problem is that the mysql gem was compiled against MySQL 5.0, but we are using a later MySQL version. This is what I learned on the official Redmine issue tracker. For the moment, I am not going to attempt to recompile against our version. I have a vbscript script that can restart

clean /tmp when send_file is over

℡╲_俬逩灬. 提交于 2019-12-11 13:59:44
问题 I have a Redmine plugin. I create a temporary file in /tmp, then I send it with File.open. I want to delete the temporary file when user has download it. How can I do ? My code (in a controller): File.open(filelocation, 'r') do |file| send_file file, :filename => filename, :type => "application/pdf", :disposition => "attachment" end If I remove the file after File.open, it doesn't work. EDIT In my controller I do: def something temp = Tempfile.new(['PDF_','.pdf']) # ... some code that modify

How to solve error “422:invalid authentication token” in Redmine

谁说胖子不能爱 提交于 2019-12-11 10:45:50
问题 In redmine I am getting 422:invalid authentication token and the logged in name is displayed with other user name instead of login user. There are no steps to reproduce. All of a sudden it occurs and it will be proper when I refresh the link. Please find the attached image for clear scenario. In the attached screenshot login user name is Pavithra but all of a sudden the logged in name will be displayed with other user name (Highlighted in green colour). 回答1: I ran into a similar issue for

Redmine: rake error when installing

混江龙づ霸主 提交于 2019-12-11 06:43:32
问题 When I try to install redmine by following the procedure here: http://www.redmine.org/projects/redmine/wiki/RedmineInstall At step 4, I receive the following error: xxx@xxx.com [~/rails_apps/redmine]# rake generate_session_store WARNING: 'require 'rake/rdoctask'' is deprecated. Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead. at /usr/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/rdoctask.rb Please install RDoc 2.4.2+ to generate documentation. rake aborted! Don't know how to build

IDE for redmine/rails and configuring the project

*爱你&永不变心* 提交于 2019-12-11 05:48:10
问题 I am actually developing a plugin for redmine, Currently using netbeans 6.9 (OS: Linux) But the problem i am facing is to get the changes i have manually restart the redmine server from console. Is there a better IDE/ Configurations? Any one who has worked in same area, can provide some guidance? Also i would like to know how to run Redmine server in development mode, so that it eases the development process. Any suggestions/Directions would be helpful, appreciated. Thanx in advance. 回答1:

Bundler could not find compatible versions for gem “rack”:

北城余情 提交于 2019-12-11 02:59:29
问题 I am new to Ruby but actually I don't need it if I don't want to install Redmine. I am following the instructions at http://www.redmine.org/projects/redmine/wiki/HowTo_install_Redmine_on_CentOS_Detailed I have installed ruby 1.9 using rvm install 1.9.3 and ruby gems using... sudo yum install rubygems Then coming to the part of creating the Gemfile and register these gems in it # file: /var/www/redmine/Gemfile source "http://rubygems.org" gem "rake", "0.8.3" gem "rack", "1.1.0" gem "i18n", "0

How to install plugins on Redmine hosted on Heroku.com

痞子三分冷 提交于 2019-12-10 23:44:41
问题 Just pushed redmine to the heroku platform, though I can't get the backlog-plugin to work, it works just fine locally. I have pushed the local database to heroku aswwell. 回答1: Heroku's public directory is not writable. But a default Redmine assumes/requires so, as on start of the app server it copies static assets from the plugins (like images, javascripts, css) to the public/plugin_assets directory. On Heroku, this obviously fails. And as backlogs relies heavily on javascript, it's really

User name in Redmine

╄→гoц情女王★ 提交于 2019-12-10 20:12:10
问题 I want to get current user's name. As documentation describes, I should user User.name method. Tried to use it as in the example - didn't work. Tried this: val = User.current.name And this: user = User.find(User.current.id) val = user.name What am I doing wrong? 回答1: Unless you do something strange with your Redmine instance, you should always have a User.current . So you should also be able to use User.current.name . As this did not work, as you said, could you please elaborate a bit on what

Add a favicon to redmine theme

时间秒杀一切 提交于 2019-12-10 20:06:41
问题 redmine uses the favicon placed at /usr/share/redmine/public/favicon.ico I found a lot of code snippets using cd /usr/share/redmine/; grep -HR favicon app/ app/helpers/application_helper.rb: def favicon app/helpers/application_helper.rb: "<link rel='shortcut icon' href='#{favicon_path}' />".html_safe app/helpers/application_helper.rb: # Returns the path to the favicon app/helpers/application_helper.rb: def favicon_path app/helpers/application_helper.rb: icon = (current_theme && current_theme