ifad / redmine-cas-plugin

Redmine CAS authentication plugin
27 stars 19 forks source link

Missing partial settings-cas/settings #10

Open leitonet opened 12 years ago

leitonet commented 12 years ago

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:

I will appreciate any help!! Thanks

vjt commented 12 years ago

Uhm - that's weird. Did you restart Redmine after applying these changes?

leitonet commented 12 years ago

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

vjt commented 12 years ago

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? :)

leitonet commented 12 years ago

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? :)


Reply to this email directly or view it on GitHub: https://github.com/ifad/redmine-cas-plugin/issues/10#issuecomment-6962153