coolguywalt / brewtoolz

Automatically exported from code.google.com/p/brewtoolz
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Print to text function causing exception #88

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Print to text causes exception:

undefined method `recipe_view_items' for #<ActionView::Base:0xb5e43990>
 On line #62 of app/views/shared/_recipe_view_detailed_text.dryml

   59:  <!-- Hops -->
   60:
<p>-------------------------------------------------------------------------</p>
   61: Hops:<br/>
   62: Hop Utilisation Method: <%=
recipe_view_items.hop_utilisation_method.capitalize %>  <if
test="&recipe_view_items.is_cubed?">- No chill cooling method</if><br/>
   63:
   64: Type - Time[minutes] - Weight[<%= hop_weight_units %>] - AA(%) - IBU
 <br/>
   65:

   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:605:in `send'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:605:in `method_missing'
   app/views/shared/_recipe_view_detailed_text.dryml:62:in `render_page'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:267:in
`new_object_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:255:in
`new_object_context'
   app/views/shared/_recipe_view_detailed_text.dryml:1:in `render_page'
   hobo (0.8.8) lib/hobo/dryml/template_handler.rb:21:in `render_for_rails22'
   hobo (0.8.8) lib/hobo/dryml/template_handler.rb:141:in `render_dryml'
   hobo (0.8.8) lib/hobo/dryml/template_handler.rb:137:in `render_dryml'
   hobo (0.8.8) lib/hobo/dryml/template_handler.rb:105:in `render'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:605:in `send'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:605:in `method_missing'
   app/views/recipes/print_text.dryml:12:in `render_page'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   app/views/recipes/print_text.dryml:5:in `render_page'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:455:in `call'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:455:in
`override_and_call_tag'
   hobo (0.8.8) lib/hobo/dryml/tag_parameters.rb:21:in `call'
   hobo (0.8.8) lib/hobo/dryml/tag_parameters.rb:21:in `method_missing'
   hobo (0.8.8) taglibs/rapid_document_tags.dryml:21:in `section'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:328:in `_tag_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:328:in `_tag_context'
   hobo (0.8.8) taglibs/rapid_document_tags.dryml:20:in `section'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:464:in `send'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:464:in
`override_and_call_tag'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:427:in
`call_tag_parameter'
   app/views/taglibs/application.dryml:150:in `print_page_text'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   app/views/taglibs/application.dryml:145:in `print_page_text'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:455:in `call'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:455:in
`override_and_call_tag'
   hobo (0.8.8) lib/hobo/dryml/tag_parameters.rb:21:in `call'
   hobo (0.8.8) lib/hobo/dryml/tag_parameters.rb:21:in `method_missing'
   hobo (0.8.8) taglibs/rapid_document_tags.dryml:21:in `section'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:328:in `_tag_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:328:in `_tag_context'
   hobo (0.8.8) taglibs/rapid_document_tags.dryml:20:in `section'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:464:in `send'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:464:in
`override_and_call_tag'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:427:in
`call_tag_parameter'
   app/views/taglibs/application.dryml:23:in `page'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   app/views/taglibs/application.dryml:20:in `page'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:368:in `call'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:368:in
`call_tag_parameter_with_default_content'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:368:in
`call_tag_parameter_with_default_content'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:403:in
`call_tag_parameter'
   hobo (0.8.8) taglibs/rapid_document_tags.dryml:13:in `section_group'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:328:in `_tag_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:328:in `_tag_context'
   hobo (0.8.8) taglibs/rapid_document_tags.dryml:13:in `section_group'
   app/views/taglibs/application.dryml:20:in `page'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   app/views/taglibs/application.dryml:19:in `page'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:423:in `call'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:423:in
`call_tag_parameter'
   hobo (0.8.8) taglibs/rapid_pages.dryml:46:in `page_without_aaa82d3a9ca5'
   hobo (0.8.8) lib/hobo/dryml/scoped_variables.rb:20:in `new_scope'
   hobo (0.8.8) taglibs/rapid_pages.dryml:38:in `page_without_aaa82d3a9ca5'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) taglibs/rapid_pages.dryml:37:in `page_without_aaa82d3a9ca5'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:447:in `call'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:447:in
`override_and_call_tag'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:447:in
`override_and_call_tag'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:427:in
`call_tag_parameter'
   hobo (0.8.8) taglibs/rapid_pages.dryml:37:in `page_without_aaa82d3a9ca5'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) taglibs/rapid_pages.dryml:16:in `page_without_aaa82d3a9ca5'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:377:in `call'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:377:in
`call_tag_parameter_with_default_content'
   hobo (0.8.8) lib/hobo/dryml/tag_parameters.rb:21:in `call'
   hobo (0.8.8) lib/hobo/dryml/tag_parameters.rb:21:in `method_missing'
   hobo (0.8.8) taglibs/core.dryml:55:in `do_'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:328:in `_tag_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:328:in `_tag_context'
   hobo (0.8.8) taglibs/core.dryml:55:in `do_'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:381:in `send'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:381:in
`call_tag_parameter_with_default_content'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:403:in
`call_tag_parameter'
   hobo (0.8.8) taglibs/rapid_pages.dryml:165:in `html'
   hobo (0.8.8) lib/hobo/dryml/scoped_variables.rb:20:in `new_scope'
   hobo (0.8.8) taglibs/rapid_pages.dryml:165:in `html'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:328:in `_tag_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:328:in `_tag_context'
   hobo (0.8.8) taglibs/rapid_pages.dryml:160:in `html'
   hobo (0.8.8) taglibs/rapid_pages.dryml:16:in `page_without_aaa82d3a9ca5'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:328:in `_tag_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:328:in `_tag_context'
   hobo (0.8.8) taglibs/rapid_pages.dryml:14:in `page_without_aaa82d3a9ca5'
   app/views/taglibs/themes/clean/clean.dryml:2:in `page_without_a718c5e52ee0'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:328:in `_tag_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:328:in `_tag_context'
   app/views/taglibs/themes/clean/clean.dryml:1:in `page_without_a718c5e52ee0'
   app/views/taglibs/application.dryml:10:in `page'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:328:in `_tag_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:328:in `_tag_context'
   app/views/taglibs/application.dryml:9:in `page'
   app/views/taglibs/application.dryml:136:in `print_page_text'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:328:in `_tag_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:328:in `_tag_context'
   app/views/taglibs/application.dryml:135:in `print_page_text'
   app/views/recipes/print_text.dryml:1:in `render_page'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:267:in
`new_object_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:248:in `new_context'
   hobo (0.8.8) lib/hobo/dryml/template_environment.rb:255:in
`new_object_context'
   app/views/recipes/print_text.dryml:1:in `render_page'
   hobo (0.8.8) lib/hobo/dryml/template_handler.rb:21:in `render_for_rails22'
   hobo (0.8.8) lib/hobo/dryml/template_handler.rb:141:in `render_dryml'
   hobo (0.8.8) lib/hobo/dryml/template_handler.rb:137:in `render_dryml'
   hobo (0.8.8) lib/hobo/dryml/template_handler.rb:105:in `render'
   hobo (0.8.8) lib/hobo/dryml/template_handler.rb:82:in `render_for_file'
   hobo (0.8.8) lib/hobo/model_controller.rb:776:in `render'
   app/controllers/recipes_controller.rb:35:in `print_text'
   hobo (0.8.8) lib/hobo/controller.rb:22:in `call'
   hobo (0.8.8) lib/hobo/controller.rb:22:in `included_in_class'

-------------------------------
Request:
-------------------------------

 * URL       : http://www.brewtoolz.com/recipes/print_text/256
 * IP address: 203.44.215.94
 * Parameters: {"action"=>"print_text", "id"=>"256", "controller"=>"recipes"}
 * Rails root: /var/apps/rails/brewtoolz/releases/20100430122440

-------------------------------
Session:
-------------------------------

 * session id: nil
 * data: nil

-------------------------------
Environment:
-------------------------------

 * GATEWAY_INTERFACE                           : CGI/1.2
 * HTTP_ACCEPT                                 : */*
 * HTTP_ACCEPT_LANGUAGE                        : en-au
 * HTTP_CONNECTION                             : close
 * HTTP_COOKIE                                 :
_brewtoolz_session=BAh7DDocd2hhdHNicmV3aW5nVmlld1BsYW5uZWRGOhlyZWNpcGVTdHlsZVNlb
GVjdGlvblsGIgc0NToPc2Vzc2lvbl9pZCIlZGE0Zjk1YjA2MGQxMjkzZDBlNGEwOTM5Nzc4MjZkMzc6E
nJlY2lwZU9yZGVyQnkiCW5hbWU6CXVzZXIiDHVzZXI6Njk6EF9jc3JmX3Rva2VuIjFYZEUrQVIyaXN2U
WIweDh0Z3NqWWtNRmRhS1l4NkZHZzFRRHRnN0FvQ01FPSIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlc
jo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA%3D%3D--e28c404c609852d5d452db8b377351b
f0b65783b;
timezone=10; auth_token=a7354a99dce47f8f39ad8f763f6d20d35e9fa93a+User
 * HTTP_HOST                                   : www.brewtoolz.com
 * HTTP_REFERER                                :
http://www.brewtoolz.com/recipes/256
 * HTTP_USER_AGENT                             : Mozilla/4.0 (compatible;
MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1)
 * HTTP_VERSION                                : HTTP/1.0
 * HTTP_VIA                                    : 1.0 VICISA03
 * HTTP_X_FORWARDED_FOR                        : 203.44.215.94
 * HTTP_X_REAL_IP                              : 203.44.215.94
 * PATH_INFO                                   : /recipes/print_text/256
 * QUERY_STRING                                :
 * REMOTE_ADDR                                 : 127.0.0.1
 * REQUEST_METHOD                              : GET
 * REQUEST_PATH                                : /recipes/print_text/256
 * REQUEST_URI                                 : /recipes/print_text/256
 * SCRIPT_NAME                                 :
 * SERVER_NAME                                 : www.brewtoolz.com
 * SERVER_PORT                                 : 80
 * SERVER_PROTOCOL                             : HTTP/1.1
 * SERVER_SOFTWARE                             : Mongrel 1.1.5
 * action_controller.request.path_parameters   :
actionprint_textid256controllerrecipes
 * action_controller.request.query_parameters  :
 * action_controller.request.request_parameters:
 * action_controller.rescue.request            :
#<ActionController::Request:0xb5e43b70>
 * action_controller.rescue.response           :
#<ActionController::Response:0xb5e43b48>
 * rack.errors                                 : #<IO:0xb7cedf58>
 * rack.input                                  : #<StringIO:0xb5e45ba0>
 * rack.multiprocess                           : true
 * rack.multithread                            : false
 * rack.request                                : #<Rack::Request:0xb5e42860>
 * rack.request.cookie_hash                    :
timezone10_brewtoolz_sessionBAh7DDocd2hhdHNicmV3aW5nVmlld1BsYW5uZWRGOhlyZWNpcGVT
dHlsZVNlbGVjdGlvblsGIgc0NToPc2Vzc2lvbl9pZCIlZGE0Zjk1YjA2MGQxMjkzZDBlNGEwOTM5Nzc4
MjZkMzc6EnJlY2lwZU9yZGVyQnkiCW5hbWU6CXVzZXIiDHVzZXI6Njk6EF9jc3JmX3Rva2VuIjFYZEUr
QVIyaXN2UWIweDh0Z3NqWWtNRmRhS1l4NkZHZzFRRHRnN0FvQ01FPSIKZmxhc2hJQzonQWN0aW9uQ29u
dHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA==--e28c404c609852d5d452db8b37
7351bf0b65783bauth_tokena7354a99dce47f8f39ad8f763f6d20d35e9fa93a
User
 * rack.request.cookie_string                  :
_brewtoolz_session=BAh7DDocd2hhdHNicmV3aW5nVmlld1BsYW5uZWRGOhlyZWNpcGVTdHlsZVNlb
GVjdGlvblsGIgc0NToPc2Vzc2lvbl9pZCIlZGE0Zjk1YjA2MGQxMjkzZDBlNGEwOTM5Nzc4MjZkMzc6E
nJlY2lwZU9yZGVyQnkiCW5hbWU6CXVzZXIiDHVzZXI6Njk6EF9jc3JmX3Rva2VuIjFYZEUrQVIyaXN2U
WIweDh0Z3NqWWtNRmRhS1l4NkZHZzFRRHRnN0FvQ01FPSIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlc
jo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA%3D%3D--e28c404c609852d5d452db8b377351b
f0b65783b;
timezone=10; auth_token=a7354a99dce47f8f39ad8f763f6d20d35e9fa93a+User
 * rack.request.query_hash                     :
 * rack.request.query_string                   :
 * rack.run_once                               : false
 * rack.session                                :
whatsbrewingViewPlannedfalserecipeStyleSelection45session_idda4f95b060d1293d0e4a
093977826d37recipeOrderBynameuseruser:69_csrf_tokenXdE+AR2isvQb0x8tgsjYkMFdaKYx6
FGg1QDtg7AoCME=flash
 * rack.session.options                        :
idda4f95b060d1293d0e4a093977826d37expire_afterpath/domainkey_session_idhttponlyt
rue
 * rack.url_scheme                             : http
 * rack.version                                : 01

 * Process: 27793
 * Server : www

Original issue reported on code.google.com by chris.ta...@gmail.com on 4 May 2010 at 6:45

GoogleCodeExporter commented 9 years ago
Manually applied fix to server

Original comment by chris.ta...@gmail.com on 10 May 2010 at 11:59