Skip to content

Instantly share code, notes, and snippets.

View meineerde's full-sized avatar

Holger Just meineerde

View GitHub Profile
# first numbered item
** subitem
# second numbered item
** subitem
Processing OpensearchController#index (for 93.219.166.11 at 2010-04-27 16:57:07) [GET]
Parameters: {"project_id"=>"redmine-opensearch/repository/show/trunk/app/views", "action"=>"index", "controller"=>"opensearch"}
Rendering template within layouts/base
Rendering common/404 (404)
Filter chain halted as [:find_optional_project] rendered_or_redirected.
Completed in 18ms (View: 11, DB: 3) | 404 Not Found [http://dev.holgerjust.de/projects/redmine-opensearch/repository/show/trunk/app/views/opensearch]
<Directory /var/www/redmine/public>
Allow from all
Options -MultiViews
</Directory>
* Level 1
* Level 1
** Level 2
*** Level 3
** Level 2
require 'redmine'
Redmine::Plugin.register :my_plugin do
[...]
project_module :my_module do
permission :read_my_stuff, :my_controller => [:first_action, :second_action]
end
end
require 'redmine'
require 'dispatcher'
Dispatcher.to_prepare do
# Patches
require_dependency 'query_patch'
end
Redmine::Plugin.register :redmine_my_plugin do
...
<Location /svn>
DAV svn
SVNParentPath "/var/svn"
DirectorySlash Off
AuthType Basic
AuthName "Secured Area"
Require valid-user
</Location>
Index: app/helpers/users_helper.rb
===================================================================
--- app/helpers/users_helper.rb (revision 3733)
+++ app/helpers/users_helper.rb (working copy)
@@ -45,6 +45,20 @@
end
end
+ def change_status_options_for_select(user)
+ disabled = []
# put this into the console started by
# RAILS_ENV=production script/console --sandbox
user = User.find_by_login("my_login")
Mailer.deliver_test(user)
Index: app/controllers/my_controller.rb
===================================================================
--- app/controllers/my_controller.rb (revision 3739)
+++ app/controllers/my_controller.rb (working copy)
@@ -136,7 +136,7 @@
block = params[:block].to_s.underscore
(render :nothing => true; return) unless block && (BLOCKS.keys.include? block)
@user = User.current
- layout = @user.pref[:my_page_layout] || {}
+ layout = @user.pref[:my_page_layout] || DEFAULT_LAYOUT.dup