| Issue 515: | Edge rails and active_scaffold produces error: in `alias_method': undefined method `find_full_template_path' for class `ActionView::Base' (NameError) | |
| 40 people starred this issue and may be notified of changes. | Back to list |
Using rails r8690 and active_scaffold r727. Below is just an example, it happens in pretty much any attempted function, like running script/server, a generator, etc. $ rake --trace some_task (in /rails_project) ** Invoke some_task (first_time) ** Invoke environment (first_time) ** Execute environment ******************************************************************* * config.breakpoint_server has been deprecated and has no effect. * ******************************************************************* rake aborted! undefined method `find_full_template_path' for class `ActionView::Base' /rails_project/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/core_ext/module/aliasing.rb:31:in `alias_method' /rails_project/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/core_ext/module/aliasing.rb:31:in `alias_method_chain' /rails_project/vendor/plugins/active_scaffold/lib/extensions/generic_view_paths.rb:33 /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' /rails_project/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:496:in `require' /rails_project/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in' /rails_project/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:496:in `require' /rails_project/vendor/plugins/active_scaffold/environment.rb:63 /rails_project/vendor/plugins/active_scaffold/environment.rb:63:in `each' /rails_project/vendor/plugins/active_scaffold/environment.rb:63 /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' /rails_project/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:496:in `require' /rails_project/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in' /rails_project/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:496:in `require' /rails_project/vendor/plugins/active_scaffold/init.rb:4:in `evaluate_init_rb' /rails_project/config/../vendor/rails/railties/lib/rails/plugin.rb:79:in `evaluate_init_rb' /rails_project/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings' /rails_project/config/../vendor/rails/railties/lib/rails/plugin.rb:75:in `evaluate_init_rb' /rails_project/config/../vendor/rails/railties/lib/rails/plugin.rb:39:in `load' /rails_project/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:33:in `load_plugins' /rails_project/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:32:in `each' /rails_project/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:32:in `load_plugins' /rails_project/config/../vendor/rails/railties/lib/initializer.rb:172:in `load_plugins' /rails_project/config/../vendor/rails/railties/lib/initializer.rb:88:in `process' /rails_project/config/../vendor/rails/railties/lib/initializer.rb:49:in `send' /rails_project/config/../vendor/rails/railties/lib/initializer.rb:49:in `run' /rails_project/config/environment.rb:13 /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' /rails_project/vendor/rails/railties/lib/tasks/misc.rake:3 /usr/lib64/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in `invoke_with_call_chain' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `synchronize' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `invoke_with_call_chain' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:518:in `invoke_prerequisites' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `send' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1183:in `each' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:515:in `invoke_prerequisites' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:507:in `invoke_with_call_chain' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `synchronize' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `invoke_with_call_chain' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in `invoke_task' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `run' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run' /usr/lib64/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31 /usr/bin/rake:16:in `load' /usr/bin/rake:16 |
|
,
Jan 26, 2008
Some more checking shows it broke with rails r8669 with the introduction of TemplateFinder #10800. http://dev.rubyonrails.org/changeset/8669 |
|
,
Feb 01, 2008
I got this too... |
|
,
Feb 11, 2008
I have this problem too... Don't know how to fix it.. |
|
,
Feb 15, 2008
Just a note for others who may encounter this: you can freeze to Rails 2.0.2 (or I would assume r8668) to continue working with edge/trunk ActiveScaffold until this issue is resolved. |
|
,
Feb 22, 2008
I really needed the newest features from edge rails so I did my best to patch active_scaffold to work properly. The patch I'm attaching is from a piston managed version of active_scaffold, and piston just relies on unix diff, so the patch is probably not directly appliable to the active_scaffold codebase. In the diff, the versions of files with .tmp in their path are from the active_scaffold trunk, -r727. In addition to the patched code, I also needed to call the ActionController::Base.prepend_view_path method in all of my active_scaffold controllers, as well as append the path to active_scaffold default/views in the active_scaffold config block. So, in my A_S controller I have a class level method call like so: prepend_view_path("#{RAILS_ROOT}/vendor/plugins/active_scaffold/frontends/default/views/") As well as a cfg block call: cfg.template_search_path << "vendor/plugins/active_scaffold/frontends/default/views/" My changes are very brute-force and fragile, but I was hoping it may provide a useful stepping stone to a more robust fix for this issue. One last thing, for others looking into this issue the problem came about via this ticket: http://dev.rubyonrails.org/ticket/10800 and this changeset: http://dev.rubyonrails.org/changeset/8683 -acechase |
|
,
Mar 07, 2008
This problem also occurs with tags/active_scaffold |
|
,
Apr 19, 2008
This is no longer only an edge rails problem. The current gem version of rails is 2.0.2.9216 and also exhibits this problem. Therefore I would suggest increasing the priority of this issue. Thanks, Frank. |
|
,
May 16, 2008
Ace, I tried manually applying your patch and now AS complains about missing views that don't exist. Any suggestions? |
|
,
May 16, 2008
Erik, Please check out this thread for more up to date information on working with edge rails: http://groups.google.com/group/activescaffold/browse_thread/thread/567770b55aba525c/767dd38f61fb5744?lnk=gst&q=acechase#767dd38f61fb5744 With the code from this issue (#515), plus the code in the above forum thread, I've got ActiveScaffold working under Rails 2.1RC1. I haven't heard a word from the AS maintainers on what their plans are WRT to updating the code to work with the new rails. If I thought they were ready to take on the upgrade I'd be happy to consolidate what I've got working into a single coherent post. Unfortunately, I haven't heard word one from the maintainers on this issue. anyone out there know otherwise? -acechase |
|
,
May 21, 2008
Just an FYI for everyone. The patched version of AS blows up if the AS_acts_as_list plugin is installed. |
|
,
May 23, 2008
this is definitely still a problem with AS+Edge |
|
,
Jun 02, 2008
+1, Rails 2.1 won't start w/ AS because of this bug. |
|
,
Jun 03, 2008
+1 |
|
,
Jun 04, 2008
+1 |
|
,
Jun 04, 2008
+1 |
|
,
Jun 05, 2008
Same error here with rails 2.1 +1 |
|
,
Jun 06, 2008
+1 Same error after updating to rails 2.1 |
|
,
Jun 06, 2008
+1 |
|
,
Jun 07, 2008
+1 with rails 2.1 |
|
,
Jun 09, 2008
+1 |
|
,
Jun 09, 2008
look, folks, I don't think another '+1' is going to help. This is a known bug and apparently the AS committers don't have time to deal with it. If you really want to help out, rather than giving yet another +1, make some noise about this issue. blog about it. get in contact with the AS project leaders and bitch to them about it. hell, submit a fix if you've got the time. This is not rails core, I don't think anyone really cares how many +1's are on a ticket. If you want to talk about architecture changes, or issues you're hitting with the existing patches, that's great. but all the +1's are just worthless noise. sorry for being mr. poopy pants. -ac |
|
,
Jun 09, 2008
It's okey acechase, I agree. If you only want to say "+1", please just STAR the issue. All of us who has stared this issue to show our interest in getting it fixed are getting emails every time you "+1" this. Unless you have something to actually contribute to the issue, please just star it! |
|
,
Jun 09, 2008
FYI, there is a GIT branch for rails 2.1, they are dealing with it. Help them out by pulling the branch and testing out their patches! Submit new bug reports if there are any! http://github.com/activescaffold/active_scaffold/commits/rails-2.1 |
|
,
Jun 09, 2008
cool. thanks for the followup, very useful! :D an additional FYI: Jose Fernandez has created his own AS branch where he has applied the patches discussed in this ticket as well as a couple other patches to get the code working with Rails 2.1. http://github.com/jfernandez/activescaffold/tree/master Maybe it's better for everyone to consolidate their testing efforts on the official AS rails-2.1 branch, but I figured folks might be interested in this jfernandez branch in case they need it immediately. Just keep in mind that the jfernandez branch is a patch, not a complete fix (a full fix will require some architecture changes, I think). So if you're looking to help move AS forward with rails 2.1 then it's probably best to try and stick with the rails-2.1 branch. |
|
,
Jun 11, 2008
You know what drives me nuts? I see http://github.com/activescaffold/active_scaffold/commits/rails-2.1 But how the heck do you clone it? git clone git://github.com/activescaffold/active_scaffold/commits/rails-2.1 git clone git://github.com/activescaffold/active_scaffold/rails-2.1 git clone git://github.com/activescaffold/rails-2.1 all fail |
|
,
Jun 11, 2008
git clone git://github.com/activescaffold/active_scaffold cd active_scaffold git branch -r (just lists the branches) git checkout origin/rails-2.1 |
|
,
Jun 11, 2008
http://www.sourcemage.org/Git_Guide |
|
,
Jun 11, 2008
thank you!!! not exactly intuitive.. |
|
,
Jun 11, 2008
btw after switching to this I get (same as http://groups.google.com/group/activescaffold/msg/58b8d097915c9c13 I think) NoMethodError in ThingsController#index You have a nil object when you didn't expect it! The error occurred while evaluating nil.sub RAILS_ROOT: /Users/andrewroth/as_test Application Trace | Framework Trace | Full Trace /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/template_finder.rb:108:in `file_exists?' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:1235:in `template_exists?' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/mime_responds.rb:131:in `call' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/mime_responds.rb:131:in `custom' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/mime_responds.rb:160:in `call' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/mime_responds.rb:160:in `respond' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/mime_responds.rb:154:in `each' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/mime_responds.rb:154:in `respond' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/mime_responds.rb:107:in `respond_to' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:1162:in `send' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:1162:in `perform_action_without_filters' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:580:in `call_filters' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:573:in `perform_action_without_benchmark' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:201:in `perform_action_without_caching' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:13:in `perform_action' /Library/Ruby/Gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache' /Library/Ruby/Gems/1.8/gems/activerecord-2.1.0/lib/active_record/query_cache.rb:8:in `cache' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/caching/sql_cache.rb:12:in `perform_action' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:in `send' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:529:in `process_without_filters' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/filters.rb:569:in `process_without_session_management_support' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/session_management.rb:130:in `process' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:389:in `process' /Library/Ruby/Gems/1.8/gems/rails-2.1.0/lib/webrick_server.rb:78:in `service' /Library/Ruby/Gems/1.8/gems/rails-2.1.0/lib/commands/servers/webrick.rb:66 /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in' /Library/Ruby/Gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require' /Library/Ruby/Gems/1.8/gems/rails-2.1.0/lib/commands/server.rb:39 vendor/plugins/active_scaffold/lib/extensions/action_controller_rendering.rb:53:in `rewrite_template_path_for_active_scaffold' vendor/plugins/active_scaffold/lib/extensions/action_controller_rendering.rb:44:in `each' vendor/plugins/active_scaffold/lib/extensions/action_controller_rendering.rb:44:in `rewrite_template_path_for_active_scaffold' vendor/plugins/active_scaffold/lib/extensions/action_controller_rendering.rb:13:in `render' vendor/plugins/active_scaffold/lib/actions/list.rb:37:in `list' vendor/plugins/active_scaffold/lib/actions/list.rb:35:in `list' vendor/plugins/active_scaffold/lib/actions/list.rb:8:in `index' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/benchmark.rb:293:in `measure' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:149:in `handle_request' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:107:in `dispatch' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in `synchronize' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:104:in `dispatch' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/dispatcher.rb:35:in `dispatch' /Library/Ruby/Gems/1.8/gems/rails-2.1.0/lib/webrick_server.rb:112:in `handle_dispatch' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:162:in `start' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:95:in `start' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:92:in `each' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:92:in `start' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:23:in `start' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:82:in `start' /Library/Ruby/Gems/1.8/gems/rails-2.1.0/lib/webrick_server.rb:62:in `dispatch' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `require' script/server:3 /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_view/template_finder.rb:108:in `file_exists?' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/base.rb:1235:in `template_exists?' vendor/plugins/active_scaffold/lib/extensions/action_controller_rendering.rb:53:in `rewrite_template_path_for_active_scaffold' vendor/plugins/active_scaffold/lib/extensions/action_controller_rendering.rb:44:in `each' vendor/plugins/active_scaffold/lib/extensions/action_controller_rendering.rb:44:in `rewrite_template_path_for_active_scaffold' vendor/plugins/active_scaffold/lib/extensions/action_controller_rendering.rb:13:in `render' vendor/plugins/active_scaffold/lib/actions/list.rb:37:in `list' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/mime_responds.rb:131:in `call' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/mime_responds.rb:131:in `custom' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/mime_responds.rb:160:in `call' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/mime_responds.rb:160:in `respond' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/mime_responds.rb:154:in `each' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/mime_responds.rb:154:in `respond' /Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/mime_responds.rb:107:in `respond_to' vendor/plugins/active_scaffold/lib/actions/list.rb:35:in `list' vendor/plugins/active_scaffold/lib/actions/list.rb:8:in `index' |
|
,
Jun 11, 2008
Maybe give jfernandez's branch a try: http://github.com/jfernandez/activescaffold/tree/master |
|
,
Jun 12, 2008
Is this going to get fixed? |
|
,
Jun 12, 2008
For what it's worth origin/rails-2.1 as specified in http://code.google.com/p/activescaffold/issues/detail?id=515#c26 is working for me against rails edge. |
|
,
Jun 14, 2008
Tried both jfernandez's branch and origin/rails-2.1 branch on Rails 2.1.0 installed from gem. Same error as andrewroth is having. |
|
,
Jun 14, 2008
Update: jfernandez's branch IS working. The trouble was with generated with scaffold rake task methods in controllers. After leaving only one line in controllers (like "active_scaffold :user") it works. |
|
,
Jun 14, 2008
Success reported using origin/rails-2.1 with rails release 2.1. Don't understand quite why this isn't merged to live yet... |
|
,
Jun 28, 2008
+1 |
|
,
Jul 09, 2008
+1 |
|
,
Jul 10, 2008
I have a strange problem. I've some controllers with active_scaffold which run well and some others with this problem : NameError in Admin/videoController#index uninitialized constant Admin::VideoController So I don't understand what's appens. I've tried to install jfernandez's branch but I'm not sure how doing this well. For the moment, I installed with git : git clone git://github.com/activescaffold/active_scaffold.git vendor/plugins/active_scaffold && rm -rf vendor/plugins/active_scaffold/.git and I installed jfernandez's branch with the tar on the website. I placed all the content into vendor/plugins/activescaffold/ Thx for help |
|
,
Jul 11, 2008
Error with active_scaffold (jfernandez's branch)
Processing ApplicationController#index (for 127.0.0.1 at 2008-07-11 10:29:15) [GET]
Session ID: 4a67d2f49d59c5b4eca67debc6dd4982
Parameters: {"action"=>"index", "controller"=>"admin/video"}
NameError (uninitialized constant Admin::VideoController):
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:492:in
`const_missing'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/inflector.rb:283:in `constantize'
...
#### app/controllers/admin/video_controller.rb ####
1 class Admin::VideoController < ApplicationController
2
3 before_filter :check_authentification, :except => [:signin]
4
5 layout "activescaffold"
6 active_scaffold :videos do |config|
7 ...
. end
This produce the error displayed above
#### app/controllers/admin/accueil_controller.rb ####
1 class Admin::AccueilController < ApplicationController
2
3 before_filter :check_authentification, :except => [:signin]
4
5 layout "activescaffold"
6 active_scaffold :accueil do |config|
7 ...
. end
this code work well
thx for help
|
|
,
Jul 15, 2008
really nobody's help |
|
,
Jul 22, 2008
git clone git://github.com/activescaffold/active_scaffold git checkout origin/edge ..appears to work fine with rails 2.1 at least during my short test. |
|
,
Jul 24, 2008
Excuse but I solved this problem with another fork of AS. Today I use this branche (edge) But I have another trouble. I have two tables videos and osversions I have a HABTM association between them. osversions_videos :id => false If I go on the video interface, in the fields osversions, I have the names of the osversions attached to this video. But if I click on them, I have this error : ActiveRecord::StatementInvalid in Admin/osversionController#table Mysql::Error: Unknown column 'osversions_videos.video_id' in 'where clause': SELECT DISTINCT `osversions`.id FROM `osversions` WHERE (osversions_videos.video_id = '808') ORDER BY osversions.`version` ASC LIMIT 0, 40 But I can create or update videos and the modifications appear on the video interface I tried to replace my HABTM association with a has_many :through association, this solved the problem but I can't edit osversions of a video or create another video. So what can I do to solve this. Thanks for reply |
|
,
Aug 29, 2008
+1 please fix this issue. |
|
,
Nov 08, 2008
Been using it with 2.1 and master from github for several months now.
Status: Fixed
|
|
,
Jan 13, 2009
Sure would be nice to have the main AS installation pages say that git is the recommended method, *not* the svn repository. Save us all a lot of trouble as it is the source of the problem. http://activescaffold.com/tutorials/getting-started hopefully this info will be stale *very* quickly. |
|
,
Jan 16, 2009
Today I was forced to upgrade a site from Rails 2.0.2 to Rails 2.2.2, because Dreamhost upgraded to Rails 2.2.2 and they DELETED the Rails 2.0.2 gems. I woke up to a dead site and I have no choice other than upgrading. I ran into this exact same "find_full_template_path" problem with Active Scaffold, so I tried to upgrade Active Scaffold. Unfortunately the current version of Active Scaffold from github has the exact same error with Rails 2.2.2. Here's my Active Scaffold upgrade: Ryan-15:webapp/vendor/plugins] rap% git clone git://github.com/activescaffold/active_scaffold Initialized empty Git repository in /Users/rap/projects/multivest/webapp/vendor/plugins/active_scaffold/.git/ remote: Counting objects: 5344, done. remote: Compressing objects: 100% (1376/1376), done. remote: Total 5344 (delta 3933), reused 5033 (delta 3704) Receiving objects: 100% (5344/5344), 722.55 KiB | 360 KiB/s, done. Resolving deltas: 100% (3933/3933), done. [Ryan-15:webapp/vendor/plugins] rap% ls active_scaffold activescaffold_sortable annotate_models attachment_fu in_place_editing trunk ym4r_gm Here's the error: [Ryan-15:~/projects/multivest/webapp] rap% script/server => Booting Mongrel (use 'script/server webrick' to force WEBrick) => Rails 2.2.2 application starting on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server ** Starting Mongrel listening at 0.0.0.0:3000 ** Starting Rails with development environment... Exiting /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/core_ext/module/aliasing.rb:33:in `alias_method': undefined method `find_full_template_path' for class `ActionView::Base' (NameError) from /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/core_ext/module/aliasing.rb:33:in `alias_method_chain' from /Users/rap/projects/multivest/webapp/vendor/plugins/trunk/lib/extensions/generic_view_paths.rb:33 from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' from /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require' from /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in `new_constants_in' from /Library/Ruby/Gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require' from /Users/rap/projects/multivest/webapp/vendor/plugins/trunk/environment.rb:63 ... 46 levels... from /Library/Ruby/Gems/1.8/gems/rails-2.2.2/lib/commands/server.rb:49 from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require' from script/server:3 This puts me in an awful situation. I'm going to attempt to freeze 2.0.2 gems into my project to avoid the issue until Active Scaffold is truly compatible with Rails 2.2.2. |
|
,
Jan 16, 2009
This issue is closed. If you're having issues with edge (eg 2.3) rails and as master branch then please open a new ticket. |
|
,
Jan 22, 2009
Hi all I new to the forum and I'm having a similar problem starting Mogrel with the master AS. I see this issue is closed but I don't see another defect opened to resolve the issue. Can anyone point me to the new defect? If not, I'll open one with the stack I'm getting on start. thanks |
|
,
Jan 22, 2009
Please open a new issue with your stack traces from mongrel.log and your RAILS_ENV.log if one exists. |
|
,
Mar 10, 2009
I had the same issue. What I realised is that git is not installing the proper version. I downloaded it and copied it to the vendor/plugin directory and worked. I have rails 2.2.2 |
|
|
|