yep, this fix is actually working :) if you want to checkout an alternative to puppetshow, http://github.com/ohadlevy/gni/tree/master
Ohad On Wed, Aug 12, 2009 at 11:20 PM, Gustavo Soares <[email protected]>wrote: > Apparently the problem is due to the version of ruby that I am using > (1.8.7)... (I must say that my experience in programming ruby is not that > much...) > > I found the solution in this post ( > http://railsforum.com/viewtopic.php?id=27226), which says to add the > following code to the environment.rb > > unless '1.9'.respond_to?(:force_encoding) > String.class_eval do > begin > remove_method :chars > rescue NameError > # OK > end > end > end > > > I will try this on and see how it goes.. > > Cheers, > Gus > > > On Wed, Aug 12, 2009 at 11:40 AM, Gus <[email protected]> wrote: > >> Hi all! >> >> I am running some tests with puppet (0.24.8) and puppetshow. >> >> Right now I am struggling to put puppetshow to run. I have just >> discovered the right gem versions that I should install (http:// >> groups.google.com/group/puppet-users/browse_thread/thread/ >> f41ce288f49d1cb?pli=1<http://groups.google.com/group/puppet-users/browse_thread/thread/%0Af41ce288f49d1cb?pli=1>) >> .. but now I am getting the following error >> when I try access the main page. >> >> ActionView::TemplateError (undefined method `[]' for >> #<Enumerable::Enumerator:0xb76eaad4>) on line #3 of vendor/plugins/ >> active_scaffold/frontends/default/views/_list_header.rhtml: >> 1: <% if active_scaffold_config.action_links.any? { |link| link.type >> == :table } -%> >> 2: <div class="actions"> >> 3: <% new_params = params_for(:action => :table) %> >> 4: <% active_scaffold_config.action_links.each :table do |link| - >> %> >> 5: <% next if controller.respond_to? link.security_method and ! >> controller.send(link.security_method) -%> >> 6: <%= render_action_link(link, new_params) -%> >> >> vendor/rails/activesupport/lib/active_support/core_ext/string/ >> access.rb:43:in `first' >> vendor/plugins/active_scaffold/lib/helpers/view_helpers.rb:104:in >> `params_for' >> vendor/plugins/active_scaffold/frontends/default/views/ >> _list_header.rhtml:3:in >> >> `_run_erb_47vendor47plugins47active_scaffold47frontends47default47views47_list_header46rhtml' >> vendor/rails/actionpack/lib/action_view/base.rb:637:in `send' >> vendor/rails/actionpack/lib/action_view/base.rb:637:in >> `compile_and_render_template' >> vendor/rails/actionpack/lib/action_view/base.rb:365:in >> `render_template' >> vendor/rails/actionpack/lib/action_view/base.rb:316:in >> `render_file_without_dryml' >> vendor/plugins/hobo/lib/action_view_extensions/base.rb:7:in >> `render_file' >> vendor/rails/actionpack/lib/action_view/base.rb:331:in >> `render_without_active_scaffold' >> vendor/plugins/active_scaffold/lib/extensions/ >> action_view_rendering.rb:60:in `render' >> vendor/rails/actionpack/lib/action_view/partials.rb:120:in >> `render_partial_without_active_scaffold' >> vendor/plugins/active_scaffold/lib/extensions/ >> action_view_rendering.rb:70:in `render_partial' >> vendor/rails/actionpack/lib/action_view/base.rb:352:in >> `render_without_active_scaffold' >> vendor/plugins/active_scaffold/lib/extensions/ >> action_view_rendering.rb:60:in `render' >> vendor/plugins/active_scaffold/frontends/default/views/list.rhtml: >> 3:in >> >> `_run_erb_47vendor47plugins47active_scaffold47frontends47default47views47list46rhtml' >> vendor/rails/actionpack/lib/action_view/base.rb:637:in `send' >> vendor/rails/actionpack/lib/action_view/base.rb:637:in >> `compile_and_render_template' >> vendor/rails/actionpack/lib/action_view/base.rb:365:in >> `render_template' >> vendor/rails/actionpack/lib/action_view/base.rb:316:in >> `render_file_without_dryml' >> vendor/plugins/hobo/lib/action_view_extensions/base.rb:7:in >> `render_file' >> vendor/rails/actionpack/lib/action_controller/base.rb:1100:in >> `render_for_file_without_dryml' >> vendor/plugins/hobo/lib/hobo/dryml/template_handler.rb:71:in >> `render_for_file' >> vendor/rails/actionpack/lib/action_controller/base.rb:858:in >> `render_with_no_layout' >> vendor/rails/actionpack/lib/action_controller/base.rb:872:in >> `render_with_no_layout' >> vendor/rails/actionpack/lib/action_controller/layout.rb:270:in >> `render_without_benchmark' >> vendor/rails/actionpack/lib/action_controller/benchmarking.rb: >> 51:in `render_without_active_scaffold' >> /opt/local/lib/ruby/1.8/benchmark.rb:293:in `measure' >> vendor/rails/actionpack/lib/action_controller/benchmarking.rb: >> 51:in `render_without_active_scaffold' >> vendor/plugins/active_scaffold/lib/extensions/ >> action_controller_rendering.rb:13:in `render_without_hobo_model' >> vendor/plugins/hobo/lib/hobo/model_controller.rb:558:in `render' >> vendor/plugins/active_scaffold/lib/actions/list.rb:13:in `table' >> vendor/rails/actionpack/lib/action_controller/base.rb:1158:in >> `send' >> vendor/rails/actionpack/lib/action_controller/base.rb:1158:in >> `perform_action_without_filters' >> vendor/rails/actionpack/lib/action_controller/filters.rb:697:in >> `call_filters' >> vendor/rails/actionpack/lib/action_controller/filters.rb:689:in >> `perform_action_without_benchmark' >> vendor/rails/actionpack/lib/action_controller/benchmarking.rb: >> 68:in `perform_action_without_rescue' >> /opt/local/lib/ruby/1.8/benchmark.rb:293:in `measure' >> vendor/rails/actionpack/lib/action_controller/benchmarking.rb: >> 68:in `perform_action_without_rescue' >> vendor/rails/actionpack/lib/action_controller/rescue.rb:199:in >> `perform_action_without_caching' >> vendor/rails/actionpack/lib/action_controller/caching.rb:678:in >> `perform_action' >> vendor/rails/activerecord/lib/active_record/connection_adapters/ >> abstract/query_cache.rb:33:in `cache' >> vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in >> `cache' >> vendor/rails/actionpack/lib/action_controller/caching.rb:677:in >> `perform_action' >> vendor/rails/actionpack/lib/action_controller/base.rb:524:in >> `send' >> vendor/rails/actionpack/lib/action_controller/base.rb:524:in >> `process_without_filters' >> vendor/rails/actionpack/lib/action_controller/filters.rb:685:in >> `process_without_session_management_support' >> vendor/rails/actionpack/lib/action_controller/ >> session_management.rb:123:in `process' >> vendor/rails/actionpack/lib/action_controller/components.rb:66:in >> `process_with_components' >> vendor/plugins/active_scaffold/lib/extensions/ >> component_response_with_namespacing.rb:13:in `component_response' >> vendor/rails/actionpack/lib/action_controller/components.rb:88:in >> `render_component_as_string' >> vendor/rails/actionpack/lib/action_controller/components.rb:148:in >> `component_logging' >> vendor/rails/actionpack/lib/action_controller/components.rb:87:in >> `render_component_as_string' >> vendor/rails/actionpack/lib/action_controller/components.rb:45:in >> `send!' >> vendor/rails/actionpack/lib/action_controller/components.rb:45:in >> `render_component' >> vendor/plugins/active_scaffold/lib/extensions/ >> action_view_rendering.rb:58:in `render' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:516:in >> `send' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:516:in >> `method_missing' >> app/views/front/index.dryml:14:in `render_page' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:225:in >> `new_context' >> app/views/front/index.dryml:11:in `render_page' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:381:in >> `call' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:381:in >> `override_and_call_tag' >> vendor/plugins/hobo/lib/hobo/dryml/tag_parameters.rb:21:in `call' >> vendor/plugins/hobo/lib/hobo/dryml/tag_parameters.rb:21:in >> `method_missing' >> /vendor/plugins/hobo/taglibs/rapid_document_tags.dryml:26:in >> `section' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:265:in >> `_tag_context' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:225:in >> `new_context' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:265:in >> `_tag_context' >> /vendor/plugins/hobo/taglibs/rapid_document_tags.dryml:25:in >> `section' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:389:in >> `send' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:389:in >> `override_and_call_tag' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:354:in >> `call_tag_parameter' >> /vendor/plugins/hobo/taglibs/rapid_pages.dryml:41:in >> `simple_layout' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:225:in >> `new_context' >> /vendor/plugins/hobo/taglibs/rapid_pages.dryml:37:in >> `simple_layout' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:383:in >> `call' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:383:in >> `override_and_call_tag' >> vendor/plugins/hobo/lib/hobo/dryml/tag_parameters.rb:21:in `call' >> vendor/plugins/hobo/lib/hobo/dryml/tag_parameters.rb:21:in >> `method_missing' >> /vendor/plugins/hobo/taglibs/rapid_document_tags.dryml:26:in >> `section' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:265:in >> `_tag_context' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:225:in >> `new_context' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:265:in >> `_tag_context' >> /vendor/plugins/hobo/taglibs/rapid_document_tags.dryml:25:in >> `section' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:389:in >> `send' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:389:in >> `override_and_call_tag' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:354:in >> `call_tag_parameter' >> /vendor/plugins/hobo/taglibs/rapid_pages.dryml:37:in >> `simple_layout' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:225:in >> `new_context' >> /vendor/plugins/hobo/taglibs/rapid_pages.dryml:27:in >> `simple_layout' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:372:in >> `call' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:372:in >> `override_and_call_tag' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:225:in >> `new_context' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:372:in >> `override_and_call_tag' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:354:in >> `call_tag_parameter' >> /vendor/plugins/hobo/taglibs/rapid_pages.dryml:20:in `base_page' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:265:in >> `_tag_context' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:225:in >> `new_context' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:265:in >> `_tag_context' >> /vendor/plugins/hobo/taglibs/rapid_pages.dryml:1:in `base_page' >> /vendor/plugins/hobo/taglibs/rapid_pages.dryml:26:in >> `simple_layout' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:265:in >> `_tag_context' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:225:in >> `new_context' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:265:in >> `_tag_context' >> /vendor/plugins/hobo/taglibs/rapid_pages.dryml:25:in >> `simple_layout' >> /vendor/plugins/hobo/taglibs/core.dryml:2:in `send' >> /vendor/plugins/hobo/taglibs/core.dryml:2:in `call_tag' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:265:in >> `_tag_context' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:225:in >> `new_context' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:265:in >> `_tag_context' >> /vendor/plugins/hobo/taglibs/core.dryml:1:in `call_tag' >> /vendor/plugins/hobo/taglibs/rapid_pages.dryml:64:in >> `page_without_theme' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:265:in >> `_tag_context' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:225:in >> `new_context' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:265:in >> `_tag_context' >> /vendor/plugins/hobo/taglibs/rapid_pages.dryml:64:in >> `page_without_theme' >> /app/views/taglibs/themes/puppetshow/puppetshow.dryml:2:in >> `page_without_app' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:265:in >> `_tag_context' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:225:in >> `new_context' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:265:in >> `_tag_context' >> /app/views/taglibs/themes/puppetshow/puppetshow.dryml:1:in >> `page_without_app' >> /app/views/taglibs/application.dryml:10:in `page' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:265:in >> `_tag_context' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:225:in >> `new_context' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:265:in >> `_tag_context' >> /app/views/taglibs/application.dryml:9:in `page' >> app/views/front/index.dryml:1:in `render_page' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:235:in >> `new_object_context' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:225:in >> `new_context' >> vendor/plugins/hobo/lib/hobo/dryml/template_environment.rb:232:in >> `new_object_context' >> app/views/front/index.dryml:1:in `render_page' >> vendor/plugins/hobo/lib/hobo/dryml/template_handler.rb:12:in >> `render' >> vendor/rails/actionpack/lib/action_view/base.rb:509:in >> `delegate_render' >> vendor/rails/actionpack/lib/action_view/base.rb:368:in >> `render_template' >> vendor/rails/actionpack/lib/action_view/base.rb:316:in >> `render_file_without_dryml' >> vendor/plugins/hobo/lib/action_view_extensions/base.rb:7:in >> `render_file' >> vendor/rails/actionpack/lib/action_controller/base.rb:1100:in >> `render_for_file_without_dryml' >> vendor/plugins/hobo/lib/hobo/dryml/template_handler.rb:71:in >> `render_for_file' >> vendor/rails/actionpack/lib/action_controller/base.rb:836:in >> `render_with_no_layout' >> vendor/rails/actionpack/lib/action_controller/layout.rb:262:in >> `render_without_benchmark' >> vendor/rails/actionpack/lib/action_controller/benchmarking.rb: >> 51:in `render_without_active_scaffold' >> /opt/local/lib/ruby/1.8/benchmark.rb:293:in `measure' >> vendor/rails/actionpack/lib/action_controller/benchmarking.rb: >> 51:in `render_without_active_scaffold' >> vendor/plugins/active_scaffold/lib/extensions/ >> action_controller_rendering.rb:13:in `render' >> vendor/rails/actionpack/lib/action_controller/base.rb:1153:in >> `default_render' >> vendor/rails/actionpack/lib/action_controller/base.rb:1159:in >> `perform_action_without_filters' >> vendor/rails/actionpack/lib/action_controller/filters.rb:697:in >> `call_filters' >> vendor/rails/actionpack/lib/action_controller/filters.rb:689:in >> `perform_action_without_benchmark' >> vendor/rails/actionpack/lib/action_controller/benchmarking.rb: >> 68:in `perform_action_without_rescue' >> /opt/local/lib/ruby/1.8/benchmark.rb:293:in `measure' >> vendor/rails/actionpack/lib/action_controller/benchmarking.rb: >> 68:in `perform_action_without_rescue' >> vendor/rails/actionpack/lib/action_controller/rescue.rb:199:in >> `perform_action_without_caching' >> vendor/rails/actionpack/lib/action_controller/caching.rb:678:in >> `perform_action' >> vendor/rails/activerecord/lib/active_record/connection_adapters/ >> abstract/query_cache.rb:33:in `cache' >> vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in >> `cache' >> vendor/rails/actionpack/lib/action_controller/caching.rb:677:in >> `perform_action' >> vendor/rails/actionpack/lib/action_controller/base.rb:524:in >> `send' >> vendor/rails/actionpack/lib/action_controller/base.rb:524:in >> `process_without_filters' >> vendor/rails/actionpack/lib/action_controller/filters.rb:685:in >> `process_without_session_management_support' >> vendor/rails/actionpack/lib/action_controller/ >> session_management.rb:123:in `process' >> vendor/rails/actionpack/lib/action_controller/base.rb:388:in >> `process' >> vendor/rails/actionpack/lib/action_controller/dispatcher.rb:171:in >> `handle_request' >> vendor/rails/actionpack/lib/action_controller/dispatcher.rb:115:in >> `dispatch' >> vendor/rails/actionpack/lib/action_controller/dispatcher.rb:126:in >> `dispatch_cgi' >> vendor/rails/actionpack/lib/action_controller/dispatcher.rb:9:in >> `dispatch' >> vendor/rails/railties/lib/webrick_server.rb:112:in >> `handle_dispatch' >> vendor/rails/railties/lib/webrick_server.rb:78:in `service' >> /opt/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' >> /opt/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' >> /opt/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' >> /opt/local/lib/ruby/1.8/webrick/server.rb:162:in `start' >> /opt/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' >> /opt/local/lib/ruby/1.8/webrick/server.rb:95:in `start' >> /opt/local/lib/ruby/1.8/webrick/server.rb:92:in `each' >> /opt/local/lib/ruby/1.8/webrick/server.rb:92:in `start' >> /opt/local/lib/ruby/1.8/webrick/server.rb:23:in `start' >> /opt/local/lib/ruby/1.8/webrick/server.rb:82:in `start' >> vendor/rails/railties/lib/webrick_server.rb:62:in `dispatch' >> vendor/rails/railties/lib/commands/servers/webrick.rb:66 >> /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in >> `gem_original_require' >> /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in >> `require' >> vendor/rails/activesupport/lib/active_support/dependencies.rb: >> 496:in `require' >> vendor/rails/activesupport/lib/active_support/dependencies.rb: >> 342:in `new_constants_in' >> vendor/rails/activesupport/lib/active_support/dependencies.rb: >> 496:in `require' >> vendor/rails/railties/lib/commands/server.rb:39 >> script/server:3:in `require' >> script/server:3 >> >> I have cloned (with git) puppetshow from git:// >> reductivelabs.com/puppetshow. >> Is there a specific branch or commit id that should get in order to >> get puppetshow up and running? >> >> Thanks in advance, >> Gus > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
