Thanks, dont think that was my problem though - that code was working
before. I think its since updating to edge Hobo and getting the Hobo
Rapid ajax stuff working that we got this issue. But I've only delved
into it now so I'm not 100% sure when this error started occuring.
I'm using the Paperclip plugin to upload images, if that helps?
On Nov 25, 3:54 pm, Tom Locke <[EMAIL PROTECTED]> wrote:
> Not sure if this is your problem, but
>
> param_name_for_this :image
>
> is not right.
>
> Try:
>
> <input:image type="file" name="#{param_name_for_this}" />
>
> i.e. you need to set the context to the right field, and then call
> param_name_for_this
>
> Tom
>
> On 25 Nov 2008, at 15:31, adamski wrote:
>
>
>
> > I've just noticed an error, which may or may not have been introduced
> > by edge Hobo...
>
> > When I use the form, which looks like this:
>
> > <form with="&ImageAttachment.new"
> > enctype="multipart/form-data"
> > update="image-attachments" reset-form refocus-form>
>
> > <input type="file" name="#{param_name_for_this
> > :image}"
> > class="file-upload" />
>
> > <input id="image_attachment[attachable_type]"
> > name="image_attachment[attachable_type]" type="hidden"
> > value="&object.class.name" />
> > <input id="image_attachment[attachable_id]"
> > name="image_attachment
> > [attachable_id]" type="hidden" value="&object.id" />
>
> > <input type="image"
> > src="../images/buttons/submit.gif"
> > value="Submit" />
> > </form>
>
> > I get the error below. I've googled around and one theory is that its
> > something to do with an exception happenening in the exception
> > handling code... I'm not convinced though.
> > Any help much appreciated!
>
> > /!\ FAILSAFE /!\ Tue Nov 25 15:09:33 +0000 2008
> > Status: 500 Internal Server Error
> > Conflicting types for parameter containers. Expected an instance of
> > Hash but found an instance of String. This can be caused by colliding
> > Array and Hash parameters like qs[]=value&qs[key]=value. (The
> > parameters received were "/home/adam/Pictures/336.jpg".)
> > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/
> > request.rb:725:in `type_conflict!'
> > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/
> > request.rb:687:in `container'
> > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/
> > request.rb:678:in `post_key_check'
> > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/
> > request.rb:654:in `parse'
> > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/
> > request.rb:641:in `initialize'
> > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/
> > request.rb:641:in `each'
> > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/
> > request.rb:641:in `initialize'
> > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/
> > request.rb:444:in `new'
> > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/
> > request.rb:444:in `parse_query_parameters'
> > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/
> > request.rb:401:in `parse_formatted_request_parameters'
> > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/
> > cgi_process.rb:80:in `request_parameters'
> > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/
> > request.rb:307:in `parameters'
> > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/
> > request.rb:22:in `request_method'
> > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/
> > request.rb:35:in `method'
> > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/
> > routing/route_set.rb:431:in `extract_request_environment'
> > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/
> > routing/route_set.rb:384:in `recognize'
> > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/
> > dispatcher.rb:148:in `handle_request'
> > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/
> > dispatcher.rb:107:in `dispatch'
> > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/
> > dispatcher.rb:104:in `synchronize'
> > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/
> > dispatcher.rb:104:in `dispatch'
> > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/
> > dispatcher.rb:120:in `dispatch_cgi'
> > /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/
> > dispatcher.rb:35:in `dispatch'
> > /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel/
> > rails.rb:76:in `process'
> > /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel/
> > rails.rb:74:in `synchronize'
> > /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel/
> > rails.rb:74:in `process'
> > /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel.rb:
> > 159:in `process_client'
> > /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel.rb:
> > 158:in `each'
> > /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel.rb:
> > 158:in `process_client'
> > /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel.rb:
> > 285:in `run'
> > /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel.rb:
> > 285:in `initialize'
> > /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel.rb:
> > 285:in `new'
> > /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel.rb:
> > 285:in `run'
> > /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel.rb:
> > 268:in `initialize'
> > /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel.rb:
> > 268:in `new'
> > /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel.rb:
> > 268:in `run'
> > /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel/
> > configurator.rb:282:in `run'
> > /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel/
> > configurator.rb:281:in `each'
> > /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel/
> > configurator.rb:281:in `run'
> > /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/mongrel_rails:128:in
> > `run'
> > /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/mongrel/
> > command.rb:212:in `run'
> > /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/mongrel_rails:281
> > /usr/bin/mongrel_rails:19:in `load'
> > /usr/bin/mongrel_rails:19
>
> > Thanks
> > Adam
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---