On Miércoles, 12 de Mayo de 2010 19:15:38 nvoynov escribió:
> On 12 май, 18:32, Iñaki Baz Castillo <[email protected]> wrote:
> > > I'm playing with latest version activescaffold and legacy database.
> > > All primary and foreign keys in database are of type BINARY(16) (GUID
> > > eported from accounting system).
> > >
> > > I get an error when trying to view edit the record - "Request Failed
> > > (code 500, Internal Error)"
> >
> > Please paste the log. Use 'development' mode and check the error under
> > YOUR_APP/logs/development.log.
>
> development.log contains no errors
>
> Processing CatalogueController#index (for 127.0.0.1 at 2010-05-12
> 20:08:04) [GET]

That's the log for index action, but you said you get the error in show and 
edit actions. Is there something in the log about those actions? Error is on 
rack, when check if file exists, I think is checking URL is a file, and URL 
contain the id which has a null byte. Can you try to build a controller 
without ActiveScaffold and call show action? I think the error is independent 
of ActiveScaffold

>
> errors in the console to view and edit operations
>
> [2010-05-12 20:08:32] ERROR ArgumentError: string contains null byte
>       C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/rack/static.rb:
> 37:in `file?'
>       C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/rack/static.rb:
> 37:in `file_exist?'
>       C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/rack/static.rb:
> 18:in `call'
>       C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/urlmap.rb:46:in
> `call'
>       C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/urlmap.rb:40:in
> `each'
>       C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/urlmap.rb:40:in
> `call'
>       C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/rack/
> log_tailer.rb:17:in `call'
>       C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/content_length.rb:
> 13:in `call'
>       C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/webrick.rb:
> 46:in `service'
>       C:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
>       C:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
>       C:/Ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
>       C:/Ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
>       C:/Ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
>       C:/Ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
>       C:/Ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
>       C:/Ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
>       C:/Ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
>       C:/Ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'
>       C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.0/lib/rack/handler/webrick.rb:
> 13:in `run'
>       C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/commands/server.rb:111
>       C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require'
>       C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `require'
>       E:/opt/src/rails/activebarsa/script/server:3
>       -e:1:in `load'
>       -e:1

-- 
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en.

Reply via email to