vjt, thanks for your reply. I did it, I restarted Redmine, but the error is still there.
Before trying to access the plugin, I had another error that colud be related with this one.
When I was doing a "rake db:migrate_plugins RAILS_ENV=production" the rake aborted showing:
uninitialize constant ActionController::Dispatcher in lib/redmine-cas.rb at line 155.
I googled and found that ActionController::Dispatcher now is ActionController::Routing::RouteSet::Dispatcher, so I replaced the line:
ActionController::Dispatcher.to_prepare do
with:
ActionController::Routing::RouteSet::Dispatcher.new do
and rake passed succesfully.
Could it be the cause of the problem? Did I replace correctly this line? As you can see I'm very new in Ruby.
I'm using:
I have set up a new Redmine instance on Rails 2.3.14, added the redmine_cas plugin, renamed vendor/plugins/redmine_cas/app/views/settings into vendor/plugins/redmine_cas/app/views/settings-cas, changed settings/settings into settings-cas/settings at line 30 of vendor/plugins/redmine_cas/lib/redmine_cas.rb, stopped and restarted Redmine and everything worked as expected.
Are you sure you didn't mistype the directory name either when renaming or when amending the redmine_cas.rb file? :)
vjt, in my Redmine version I have to deploy all plugins in
"redmine/plugins/" directory instead of doing it in
"redmine/vendor/plugins/ "
I checked out serveral times and there is no mistype (attached 2 images
showing directory and code).
Any other suggestion?
Thanks
On Fri, Jul 13, 2012 at 9:55 AM, Marcello Barnaba <
reply@reply.github.com
wrote:
Hi,
I have set up a new Redmine instance on Rails 2.3.14, added the
redmine_cas plugin, renamed
vendor/plugins/redmine_cas/app/views/settings into
vendor/plugins/redmine_cas/app/views/settings-cas, changed
settings/settings into settings-cas/settings at line 30 of
vendor/plugins/redmine_cas/lib/redmine_cas.rb, stopped and restarted
Redmine and everything worked as expected.
Are you sure you didn't mistype the directory name either when renaming or
when amending the redmine_cas.rb file? :)
Hi, I followed #2 Issue renaming folder /redmine-cas-plugin/app/views/settings/ to /redmine-cas-plugin/app/views/settings-cas/
and then changing code at line 30 of lib/redmine_cas.rb:
settings :default => { :enabled => false, :cas_base_url => 'https://localhost', :login_without_cas => false, :auto_create_users => false, :auto_update_attributes_on_login => false, :cas_logout => true }, :partial => 'settings-cas/settings'
but when I click "Configure..." in Administration -> Plugins -> CAS Plugin, it throws the following error:
(Redmine's log):
ActionView::Template::Error (Missing partial settings-cas/settings with {:handlers=>[:rjs, :rsb, :builder, :erb], :locale=>[:es, :en], :formats=>[:html]}. Searched in:
_app_views_settings_plugin_html_erb___109367577_53326092' app/views/settings/plugin.html.erb:4:in
_app_views_settings_plugin_html_erb___109367577_53326092'I will appreciate any help!! Thanks
Uhm - that's weird. Did you restart Redmine after applying these changes?
vjt, thanks for your reply. I did it, I restarted Redmine, but the error is still there.
Before trying to access the plugin, I had another error that colud be related with this one. When I was doing a "rake db:migrate_plugins RAILS_ENV=production" the rake aborted showing:
uninitialize constant ActionController::Dispatcher in lib/redmine-cas.rb at line 155.
I googled and found that ActionController::Dispatcher now is ActionController::Routing::RouteSet::Dispatcher, so I replaced the line:
ActionController::Dispatcher.to_prepare do
with:
ActionController::Routing::RouteSet::Dispatcher.new do
and rake passed succesfully.
Could it be the cause of the problem? Did I replace correctly this line? As you can see I'm very new in Ruby. I'm using:
Any suggestion? Thank you very much
Hi,
I have set up a new Redmine instance on Rails 2.3.14, added the
redmine_cas
plugin, renamedvendor/plugins/redmine_cas/app/views/settings
intovendor/plugins/redmine_cas/app/views/settings-cas
, changedsettings/settings
intosettings-cas/settings
at line 30 ofvendor/plugins/redmine_cas/lib/redmine_cas.rb
, stopped and restarted Redmine and everything worked as expected.Are you sure you didn't mistype the directory name either when renaming or when amending the
redmine_cas.rb
file? :)vjt, in my Redmine version I have to deploy all plugins in "redmine/plugins/" directory instead of doing it in "redmine/vendor/plugins/ " I checked out serveral times and there is no mistype (attached 2 images showing directory and code). Any other suggestion? Thanks
On Fri, Jul 13, 2012 at 9:55 AM, Marcello Barnaba < reply@reply.github.com