Closed aostrovsky closed 12 years ago
Environment?
Anything else?
[root@redmine plugins]# gem list
* LOCAL GEMS *
actionmailer (3.2.6) actionpack (3.2.6) activemodel (3.2.6) activerecord (3.2.6) activeresource (3.2.6) activesupport (3.2.6) arel (3.0.2) builder (3.0.0) bundler (1.1.5) coderay (1.0.7) daemon_controller (0.2.6) erubis (2.7.0) fastercsv (1.5.5) fastthread (1.0.7) flexmock (0.8.6) hike (1.2.1) i18n (0.6.0) journey (1.0.4) jquery-rails (2.0.2) json (1.7.4) mail (2.4.4) mime-types (1.19) multi_json (1.3.6) mysql (2.8.1) net-ldap (0.3.1) passenger (3.0.12) pg (0.14.0) polyglot (0.3.3) rack (1.4.1, 1.1.0) rack-cache (1.2) rack-openid (1.3.1) rack-ssl (1.3.2) rack-test (0.6.1) rails (3.2.6) railties (3.2.6) rake (0.9.2.2, 0.8.7) rdoc (3.12) rmagick (2.13.1) ruby-openid (2.1.8) sprockets (2.1.3) sqlite3 (1.3.6) thor (0.15.4) tilt (1.3.3) treetop (1.4.10) tzinfo (0.3.33) [root@redmine plugins]# uname -a Linux redmine.ffx.ionidea.com 2.6.32-279.2.1.el6.i686 #1 SMP Thu Jul 19 23:10:02 UTC 2012 i686 i686 i386 GNU/Linux [root@redmine plugins]# cat /etc/redhat-release CentOS release 6.3 (Final)
Hi, I don't know why, but my environment instead of having jquery-rails, has prototype-rails, the rest are almost the same.
In a Redmine 2.0.3 installation, the $redmine_path/Gemfile does include prototype-rails instead of jquery-rails. The jquery-rails gem substitutes prototype-rails as of Redmine 2.1 so it seems you don't have a 2.0.3 version installed. Am I wrong?
New plugin's version 2.3.0 should solves the problem, 'form_remote_tag', 'link_to_remote' and so on has been removed.
Updated plugin. Updated redmine from trunk (now based on rails 3.2.8)
Now no error when going to "Spent Time". But when run report having that:
Processing by SpentTimeController#report as HTML Parameters: {"to"=>"2012-09-06", "from"=>"2010-08-04", "user"=>"4", "period_type"=>"2", "utf8"=>"✓", "period"=>"all", "authenticity_token"=>"RrkdMb1y1UUK955ROlEFSJdiLrQVt44kPhVYNFhdPEE="} Missing template, responding with 404 Rendered common/error.html.erb within layouts/base (0.2ms) Completed 404 Not Found in 97ms (Views: 25.6ms | ActiveRecord: 1.9ms)
I get the same error with Redmine 2.1.2 and spent_time 2.0.0.
This must be solved as of version 2.4.0
Just installed plugin and getting following error when clicking on link Bug?
Started GET "/spent_time" for 10.10.0.9 at Tue Aug 14 10:53:33 -0400 2012 Processing by SpentTimeController#index as HTML Rendered plugins/redmine_spent_time/app/views/spent_time/index.html.erb within layouts/base (220.9ms) Completed 500 Internal Server Error in 235ms
ActionView::Template::Error (undefined method
form_remote_tag' for #<#<Class:0xb58c80c4>:0xb58c624c>): 2: <%= stylesheet_link_tag 'spent_time', :plugin => 'redmine_spent_time' %> 3: <% end %> 4: 5: <%= form_remote_tag(:url => {:action => :report}, :update => 'report', :complete => "$('submit_report').disabled=false;") do %> 6: <fieldset id="filters"><legend><h2><%= l(:label_spent_time) %></h2></legend> 7: <p> 8: <%= l(:label_person) %> plugins/redmine_spent_time/app/views/spent_time/index.html.erb:5:in
_plugins_redmine_spent_time_app_views_spent_time_index_html_erb83796894624548308' actionpack (3.2.6) lib/action_view/template.rb:145:insend' actionpack (3.2.6) lib/action_view/template.rb:145:in
render' activesupport (3.2.6) lib/active_support/notifications.rb:125:ininstrument' actionpack (3.2.6) lib/action_view/template.rb:143:in
render' actionpack (3.2.6) lib/action_view/renderer/template_renderer.rb:47:inrender_template' actionpack (3.2.6) lib/action_view/renderer/abstract_renderer.rb:38:in
instrument' activesupport (3.2.6) lib/active_support/notifications.rb:123:ininstrument' activesupport (3.2.6) lib/active_support/notifications/instrumenter.rb:20:in
instrument' activesupport (3.2.6) lib/active_support/notifications.rb:123:ininstrument' actionpack (3.2.6) lib/action_view/renderer/abstract_renderer.rb:38:in
instrument' actionpack (3.2.6) lib/action_view/renderer/template_renderer.rb:46:inrender_template' actionpack (3.2.6) lib/action_view/renderer/template_renderer.rb:54:in
render_with_layout' actionpack (3.2.6) lib/action_view/renderer/template_renderer.rb:45:inrender_template' actionpack (3.2.6) lib/action_view/renderer/template_renderer.rb:18:in
render' actionpack (3.2.6) lib/action_view/renderer/renderer.rb:36:inrender_template' actionpack (3.2.6) lib/action_view/renderer/renderer.rb:17:in
render' actionpack (3.2.6) lib/abstract_controller/rendering.rb:110:in_render_template' actionpack (3.2.6) lib/action_controller/metal/streaming.rb:225:in
_render_template' actionpack (3.2.6) lib/abstract_controller/rendering.rb:103:inrender_to_body' actionpack (3.2.6) lib/action_controller/metal/renderers.rb:28:in
render_to_body' actionpack (3.2.6) lib/action_controller/metal/compatibility.rb:50:inrender_to_body' actionpack (3.2.6) lib/abstract_controller/rendering.rb:88:in
render' actionpack (3.2.6) lib/action_controller/metal/rendering.rb:16:inrender' actionpack (3.2.6) lib/action_controller/metal/instrumentation.rb:40:in
render' activesupport (3.2.6) lib/active_support/core_ext/benchmark.rb:5:inms' /usr/lib/ruby/1.8/benchmark.rb:308:in
realtime' activesupport (3.2.6) lib/active_support/core_ext/benchmark.rb:5:inms' actionpack (3.2.6) lib/action_controller/metal/instrumentation.rb:40:in
render' actionpack (3.2.6) lib/action_controller/metal/instrumentation.rb:83:incleanup_view_runtime' activerecord (3.2.6) lib/active_record/railties/controller_runtime.rb:24:in
cleanup_view_runtime' actionpack (3.2.6) lib/action_controller/metal/instrumentation.rb:39:inrender' actionpack (3.2.6) lib/action_controller/metal/implicit_render.rb:10:in
default_render' actionpack (3.2.6) lib/action_controller/metal/implicit_render.rb:5:insend_action' actionpack (3.2.6) lib/abstract_controller/base.rb:167:in
process_action' actionpack (3.2.6) lib/action_controller/metal/rendering.rb:10:inprocess_action' actionpack (3.2.6) lib/abstract_controller/callbacks.rb:18:in
process_action' activesupport (3.2.6) lib/active_support/callbacks.rb:458:in_run__32823829__process_action__307237328__callbacks' activesupport (3.2.6) lib/active_support/callbacks.rb:405:in
send' activesupport (3.2.6) lib/active_support/callbacks.rb:405:in `__run_callback'