This is not the error: ActionView::MissingTemplate

Hey everyone,

I am getting the following error:

Started POST “/rubyamf/gateway” for 127.0.0.1 at 2011-11-24 16:27:20
+1300
Processing by RubyamfController#gateway as /
Processing by ProjectsController#templates as /
←[1m←[36mProject Load (1.0ms)←[0m ←[1mSELECT projects.* FROM
projects ←[0
m
Completed 200 OK in 34ms (Views: 3.0ms | ActiveRecord: 28.0ms)
Completed 500 Internal Server Error in 267ms

ActionView::MissingTemplate (Missing template rubyamf/gateway with
{:handlers=>[
:erb, :builder, :coffee], :formats=>[:html, :text, :js, :css, :ics,
:csv,
:xml,
:rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json, :amf],
:locale=>[
:en, :en]}. Searched in:
*
“C:/work/Flex-Planner/schneider-planner-source/App_Server_Update/app/views”
):

Rendered
C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.1.1/lib/action_dispatc
h/middleware/templates/rescues/missing_template.erb within
rescues/layout
(1.0ms
)
[2011-11-24 16:27:20] ERROR Errno::ECONNABORTED: An established
connection
was a
borted by the software in your host machine.
C:/Ruby193/lib/ruby/1.9.1/webrick/httpserver.rb:80:in eof?' C:/Ruby193/lib/ruby/1.9.1/webrick/httpserver.rb:80:inrun’
C:/Ruby193/lib/ruby/1.9.1/webrick/server.rb:191:in `block in
start_threa
d’

RubyAMF >>>>>>>>> #RubyAMF::Actions::PrepareAction:0x3eb2c18
took: 0.
00000 secs

RubyAMF >>>>>>>>> #RubyAMF::Actions::RailsInvokeAction:0x3eb2bb8
took
: 0.00000 secs

RubyAMF >>>>>>>>> Serialization took: 0.00100 secs

======================

At first it would seem like a template is missing, except I am rendering
to
AMF.
In the controller I am simply calling a model.find(:all) and it
retrieves
all data requested.
Works fine on a number of models, but when I call Project I get the
above
error.
I duplicated the table, incase it was a MySQL error, but the duplicated
table worked fine,
which only leaves me that there is something wrong with the associated
Model Reference?

Any ideas? It is a highly isolated issue.

Appreciate any help,

James from New Zealand.

Hi Matt,

I found where the error was.

In the RubyAMF config file I was calling 2 methods that I had disabled.

I appreciate the reply,

Thanks,
James

On Nov 24, 3:53 pm, James S. [email protected] wrote:

Completed 200 OK in 34ms (Views: 3.0ms | ActiveRecord: 28.0ms)
“C:/work/Flex-Planner/schneider-planner-source/App_Server_Update/app/views”
):

Can you post a complete stack trace? Not a RubyAMF expert by any
means, but the only logical way I can see to get this error would be
for something to go wrong in the RubyAmfController#gateway method:

https://github.com/victorcoder/rubyamf_plugin/blob/rails3/rails_installer_files/rubyamf_controller.rb#L29

If an exception occurred in that method, the rescue block would result
in the behavior you’ve described (it doesn’t render - FFS, it doesn’t
LOG. Somebody should be fired.)

–Matt J.