I searched the mail list and found one hint, by taking the erb for the form and 
putting it in a partial.    Then using as the form tag:

<def tag="form" for="Entry">
        <%= render :partial => "form" %>
</def>

I get the ckeditor inserted, and I can upload pictures into the field.   Then 
when I try the "browse server" button, I get an error on the hobo app, but not 
on the Rails3 app.   

------------------------------------------------------------------------------
The log of the Rails3 app shows this:

Started GET 
"/ckeditor/pictures?CKEditor=entry_body_editor&CKEditorFuncNum=4&langCode=en" 
for 127.0.0.1 at Mon Jun 20 09:05:56 -0400 2011
  Processing by Ckeditor::PicturesController#index as HTML
  Parameters: {"CKEditorFuncNum"=>"4", "langCode"=>"en", 
"CKEditor"=>"entry_body_editor"}
  SQL (0.1ms)   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
Rendered 
/Library/Ruby/Gems/1.8/bundler/gems/rails-ckeditor-c2fbccafd864/app/views/ckeditor/_swfupload.html.erb
 (0.6ms)
  Ckeditor::Picture Load (0.2ms)  SELECT "ckeditor_assets".* FROM 
"ckeditor_assets" WHERE "ckeditor_assets"."type" = 'Ckeditor::Picture' ORDER BY 
id DESC
Rendered 
/Library/Ruby/Gems/1.8/bundler/gems/rails-ckeditor-c2fbccafd864/app/views/ckeditor/_asset.html.erb
 (45.1ms)
Rendered 
/Library/Ruby/Gems/1.8/bundler/gems/rails-ckeditor-c2fbccafd864/app/views/ckeditor/pictures/index.html.erb
 within layouts/ckeditor (57.1ms)
Completed 200 OK in 156ms (Views: 62.2ms | ActiveRecord: 0.3ms)

---------------------------------------------------------------------------------
while the Hobo app shows:

Started GET 
"/ckeditor/pictures?CKEditor=entry_body_editor&CKEditorFuncNum=4&langCode=en" 
for 127.0.0.1 at Mon Jun 20 09:13:15 -0400 2011
  SQL (0.3ms)   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'
  SQL (0.2ms)   SELECT name
 FROM sqlite_master
 WHERE type = 'table' AND NOT name = 'sqlite_sequence'

  Processing by Ckeditor::PicturesController#index as HTML
  Parameters: {"CKEditorFuncNum"=>"4", "langCode"=>"en", 
"CKEditor"=>"entry_body_editor"}
Completed   in 14ms

TypeError (can't convert nil into Array):
  

Rendered 
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/_trace.erb
 (0.7ms)
  Ckeditor::Picture Load (0.3ms)  SELECT "ckeditor_assets".* FROM 
"ckeditor_assets" WHERE "ckeditor_assets"."type" = 'Ckeditor::Picture' ORDER BY 
id DESC
Rendered 
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb
 (93.7ms)
Rendered 
/Library/Ruby/Gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb
 within rescues/layout (97.7ms)
------------------------------------------------------------------------------------

But the problem is not in the database.  When I run that query directly against 
the database (using the Firefox plugin) it returns a row.   Since it all works 
perfectly in vanilla Rails3, I'm posting my question here.  

-- 
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.

Reply via email to