Hi Bryan, thanks for the quick reply! second one first... if="&this.event_times.occurs_weekly?" gives me the same error, should have mentioned I'd tried that.
backtrace for the 'can't convert string to integer' issue on table plus... TypeError in My_events#index Showing */Users/svp/rordev/soshef2/app/views/my_events/index.dryml* where line *#10* raised: can't convert String into Integer Extracted source (around line *#10*): 7: <index-page> 8: <heading:>My Events</heading:> 9: <collection: replace> 10: <table-plus fields="name, my_venue, event_times.special_note.first, event_times.occurs_weekly.first, listing_state" > 11: <name-heading-link:>Event Name</name-heading-link:> 12: <name-view:><a action='edit' if='&can_edit?' with='&this_parent'><name /></a></name-view:> 13: <my-venue-heading-link:>Venue</my-venue-heading-link><my-venue-view:><name /></my-venue-view:> Rails.root: /Users/svp/rordev/soshef2 Application Trace <http://localhost:3000/my_events#> | Framework Trace<http://localhost:3000/my_events#> | Full Trace <http://localhost:3000/my_events#> app/views/my_events/index.dryml:10:in `block (5 levels) in render_page' app/views/my_events/index.dryml:9:in `block (4 levels) in render_page' app/views/taglibs/auto/rapid/pages.dryml:1285:in `block (4 levels) in index_page__for_my_event' app/views/taglibs/auto/rapid/pages.dryml:1278:in `block (3 levels) in index_page__for_my_event' app/views/taglibs/application.dryml:17:in `call' app/views/taglibs/application.dryml:17:in `block (3 levels) in page_with_ae5c851f1de9' app/views/taglibs/application.dryml:9:in `block (2 levels) in page_with_ae5c851f1de9' app/views/taglibs/application.dryml:8:in `block in page_with_ae5c851f1de9' app/views/taglibs/application.dryml:7:in `page_with_ae5c851f1de9' app/views/taglibs/application.dryml:412:in `block in page_with_a8efb7da556b' app/views/taglibs/application.dryml:411:in `page_with_a8efb7da556b' app/views/taglibs/auto/rapid/pages.dryml:1261:in `block in index_page__for_my_event' app/views/taglibs/auto/rapid/pages.dryml:1260:in `index_page__for_my_event' app/views/my_events/index.dryml:7:in `block (3 levels) in render_page' app/views/my_events/index.dryml:1:in `block (2 levels) in render_page' app/views/my_events/index.dryml:1:in `block in render_page' app/views/my_events/index.dryml:1:in `render_page' app/views/my_events/index.dryml:1:in `_app_views_my_events_index_dryml__846503007_49826780' and top of full trace... activerecord (3.2.8) lib/active_record/associations/collection_proxy.rb:89:in `[]' activerecord (3.2.8) lib/active_record/associations/collection_proxy.rb:89:in `method_missing' hobo (2.0.0.pre6) lib/hobo/extensions/active_record/relation_with_origin.rb:36:in `method_missing_with_origin' dryml (2.0.0.pre6) lib/dryml.rb:120:in `get_field' dryml (2.0.0.pre6) lib/dryml.rb:130:in `block in get_field_path' dryml (2.0.0.pre6) lib/dryml.rb:128:in `each' dryml (2.0.0.pre6) lib/dryml.rb:128:in `get_field_path' dryml (2.0.0.pre6) lib/dryml/template_environment.rb:341:in `block in new_field_context' dryml (2.0.0.pre6) lib/dryml/template_environment.rb:288:in `block in new_context' actionpack (3.2.8) lib/action_view/helpers/capture_helper.rb:187:in `with_output_buffer' dryml (2.0.0.pre6) lib/dryml/template_environment.rb:288:in `new_context' dryml (2.0.0.pre6) lib/dryml/template_environment.rb:331:in `new_field_context' dryml (2.0.0.pre6) lib/dryml/template_environment.rb:382:in `_tag_context' dryml (2.0.0.pre6) taglibs/core.dryml:65:in `do_' hobo_rapid (2.0.0.pre6) taglibs/lists/with_fields.dryml:25:in `block (3 levels) in with_fields' dryml (2.0.0.pre6) lib/dryml/scoped_variables.rb:20:in `new_scope' hobo_rapid (2.0.0.pre6) taglibs/lists/with_fields.dryml:21:in `block (2 levels) in with_fields' hobo_rapid (2.0.0.pre6) taglibs/lists/with_fields.dryml:20:in `each' hobo_rapid (2.0.0.pre6) taglibs/lists/with_fields.dryml:20:in `block in with_fields' dryml (2.0.0.pre6) lib/dryml/template_environment.rb:386:in `block in _tag_context' dryml (2.0.0.pre6) lib/dryml/template_environment.rb:288:in `block in new_context' actionpack (3.2.8) lib/action_view/helpers/capture_helper.rb:187:in `with_output_buffer' dryml (2.0.0.pre6) lib/dryml/template_environment.rb:288:in `new_context' dryml (2.0.0.pre6) lib/dryml/template_environment.rb:386:in `_tag_context' hobo_rapid (2.0.0.pre6) taglibs/lists/with_fields.dryml:17:in `with_fields' hobo_rapid (2.0.0.pre6) taglibs/html/table.dryml:161:in `block (14 levels) in table' dryml (2.0.0.pre6) lib/dryml/template_environment.rb:288:in `block in new_context' actionpack (3.2.8) lib/action_view/helpers/capture_helper.rb:187:in `with_output_buffer' dryml (2.0.0.pre6) lib/dryml/template_environment.rb:288:in `new_context' hobo_rapid (2.0.0.pre6) taglibs/html/table.dryml:160:in `block (13 levels) in table' dryml (2.0.0.pre6) lib/dryml/tag_parameters.rb:19:in `call' dryml (2.0.0.pre6) lib/dryml/tag_parameters.rb:19:in `method_missing' dryml (2.0.0.pre6) taglibs/core.dryml:88:in `block in if_' dryml (2.0.0.pre6) lib/dryml/template_environment.rb:386:in `block in _tag_context' dryml (2.0.0.pre6) lib/dryml/template_environment.rb:288:in `block in new_context' actionpack (3.2.8) lib/action_view/helpers/capture_helper.rb:187:in `with_output_buffer' dryml (2.0.0.pre6) lib/dryml/template_environment.rb:288:in `new_context' dryml (2.0.0.pre6) lib/dryml/template_environment.rb:386:in `_tag_context' dryml (2.0.0.pre6) taglibs/core.dryml:86:in `if_' hobo_rapid (2.0.0.pre6) taglibs/html/table.dryml:160:in `block (12 levels) in table' dryml (2.0.0.pre6) lib/dryml/template_environment.rb:288:in `block in new_context' actionpack (3.2.8) lib/action_view/helpers/capture_helper.rb:187:in `with_output_buffer' dryml (2.0.0.pre6) lib/dryml/template_environment.rb:288:in `new_context' hobo_rapid (2.0.0.pre6) taglibs/html/table.dryml:159:in `block (11 levels) in table' dryml (2.0.0.pre6) lib/dryml/template_environment.rb:506:in `call' dryml (2.0.0.pre6) lib/dryml/template_environment.rb:506:in `block in override_and_call_tag' dryml (2.0.0.pre6) lib/dryml/template_environment.rb:288:in `block in new_context' actionpack (3.2.8) lib/action_view/helpers/capture_helper.rb:187:in `with_output_buffer' dryml (2.0.0.pre6) lib/dryml/template_environment.rb:288:in `new_context' dryml (2.0.0.pre6) lib/dryml/template_environment.rb:506:in `override_and_call_tag' dryml (2.0.0.pre6) lib/dryml/template_environment.rb:486:in `call_tag_parameter' hobo_rapid (2.0.0.pre6) taglibs/html/table.dryml:158:in `block (10 levels) in table' dryml (2.0.0.pre6) lib/dryml/template_environment.rb:288:in `block in new_context' actionpack (3.2.8) lib/action_view/helpers/capture_helper.rb:187:in `with_output_buffer' dryml (2.0.0.pre6) lib/dryml/template_environment.rb:288:in `new_context' hobo_rapid (2.0.0.pre6) taglibs/html/table.dryml:157:in `block (9 levels) in table' dryml (2.0.0.pre6) lib/dryml/tag_parameters.rb:19:in `call' dryml (2.0.0.pre6) lib/dryml/tag_parameters.rb:19:in `method_missing' dryml (2.0.0.pre6) taglibs/core.dryml:59:in `block (4 levels) in repeat' Anthony. On 28 November 2012 14:15, Bryan Larsen <[email protected]> wrote: > On Wed, Nov 28, 2012 at 7:45 AM, tonym <[email protected]> wrote: > > Having a bad day with table plus :/ > > > > I'm getting a 'can't convert string to integer'. > > Could you please post the backtrace? > > > > > Also, how do I reference the child variables? tried using an > > if="&event_times.occurs_weekly?" and get an error undefined method > > `event_times' for #<#<Class:0x3560768>:0x59c5b6c> > > if="&this.event_times.occurs_weekly?" > > Bryan > > -- > You received this message because you are subscribed to the Google Groups > "Hobo 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/hobousers?hl=en. > > -- *blymi mobile*| http://blymi.mobi *Your Message In Their Hands* | LinkedIn <http://uk.linkedin.com/in/blymi> | Twitter <http://twitter.com/blymimarketing/> -- You received this message because you are subscribed to the Google Groups "Hobo 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/hobousers?hl=en.
