Bug #11793
closedundefined local variable or method `include_javascript' on selecting job templates
Description
Description of problem:
I was trying to test remote execution on rhel7 and installed all required plugins. However when I go to hosts -> job templates via webUI, following error raised :
Warning!
undefined local variable or method `include_javascript' for #<#<Class:0x0000000f0eee80>:0x0000000ed073d0>
production.log:
-------------------
| Started GET "/job_templates" for 10.65.193.85 at 2015-09-14 05:45:58 -0400
2015-09-14 05:45:58 [app] [I] Processing by JobTemplatesController#index as HTML
2015-09-14 05:45:58 [app] [I] Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_remote_execution-0.0.5/app/views/job_templates/index.html.erb within layouts/application (20.0ms)
2015-09-14 05:45:58 [app] [W] Action failed
| NameError: undefined local variable or method `include_javascript' for #<#<Class:0x0000000f0eee80>:0x0000000ed073d0>
| /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_remote_execution-0.0.5/app/views/job_templates/index.html.erb:1:in `_c8aa79242155dc09695526ec9f787af2'
| /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/template.rb:145:in `block in render'
| /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications.rb:125:in `instrument'
| /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_view/template.rb:143:in `render'
| /opt/theforeman/tfm/root/usr/share/gems/gems/deface-1.0.1/lib/deface/action_view_extensions.rb:41:in `render'
Version-Release number of selected component (if applicable):
tfm-rubygem-foreman_remote_execution-0.0.5-1.fm1_10.el7.noarch
tfm-rubygem-foreman-tasks-0.7.3-2.fm1_10.el7.noarch
foreman-1.10.0-0.develop.201509101902gita265235.el7.noarch
How reproducible:
always
Steps to Reproduce:
1. katello-installer --enable-foreman-plugin-tasks
2. yum install -y tfm-rubygem-foreman_remote_execution rubygem-smart_proxy_remote_execution_ssh
3. Restart services
service httpd restart
service foreman-tasks restart
service foreman-proxy restart
4. Generate the key where smart-proxy
5. re-run the service foreman-proxy restart
Actual results: | NameError: undefined local variable or method `include_javascript' for #<#<Class:0x0000000f0eee80>:0x0000000ed073d0>
Expected results:
job templates should be opened up without any issue