Hi folks,
I'm trying to get the select helper to work inside of a part view, and
I'm getting this error:
Type Error 500
wrong argument type Symbol (expected Array)
I've copied and pasted this example from the merb-helpers/lib/merb-
helpers/form/helpers.rb code:
<%= select :name, :collection => %w(one two three) %>
The error dump looks like:
/private/var/dev/myproj/app/parts/views/document_kind_part/
index.html.erb:22:in `select'
/private/var/dev/myproj/app/parts/views/document_kind_part/
index.html.erb:22:in
`__private__var__dev__myproj__app__parts__views__document__kind__part__index_html_erb'
/private/var/dev/myproj/gems/gems/merb-core-1.0.11/lib/merb-core/
controller/mixins/render.rb:137:in `send'
/private/var/dev/myproj/gems/gems/merb-core-1.0.11/lib/merb-core/
controller/mixins/render.rb:137:in `render'
/private/var/dev/myproj/app/parts/document_kind_part.rb:6:in `index'
/private/var/dev/myproj/gems/gems/merb-action-args-1.0.11/lib/merb-
action-args/abstract_controller.rb:42:in `__send__'
/private/var/dev/myproj/gems/gems/merb-action-args-1.0.11/lib/merb-
action-args/abstract_controller.rb:42:in `_call_action'
/private/var/dev/myproj/gems/gems/merb-core-1.0.11/lib/merb-core/
controller/abstract_controller.rb:289:in `_dispatch'
/private/var/dev/myproj/gems/gems/merb-parts-0.9.8/lib/merb-parts/
part_controller.rb:103:in `_dispatch'
...etc.
That line of code works just fine in my main template file, but when I
take it out and put it in a part I get the above error. I don't have
the same issue with other form helpers like text_field or radio_group--
I've tried taking the same variable name (":name") and using it with
those helpers and I get the output I would expect.
I'm working within Merb 1.0.11 (if you didn't figure that out
already...).
Am I doing something obviously wrong, or is there a standard place I
should be looking to solve this? Is there some other information that
would be helpful to understand this issue? I'm feeling quite at a
loss; I'm not really sure what this error is telling me.
Thanks!
Best,
Dave
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"merb" 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/merb?hl=en
-~----------~----~----~----~------~----~------~--~---