This is not the error: ActionView::MissingTemplate

Hey everyone,

I am getting the following error:

Started POST “/rubyamf/gateway” for at 2011-11-24 16:27:20
Processing by RubyamfController#gateway as /
Processing by ProjectsController#templates as /
←[1m←[36mProject Load (1.0ms)←[0m ←[1mSELECT projects.* FROM
projects ←[0
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
:erb, :builder, :coffee], :formats=>[:html, :text, :js, :css, :ics,
:rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json, :amf],
:en, :en]}. Searched in:

h/middleware/templates/rescues/missing_template.erb within
[2011-11-24 16:27:20] ERROR Errno::ECONNABORTED: An established
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

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

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

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


At first it would seem like a template is missing, except I am rendering
In the controller I am simply calling a model.find(:all) and it
all data requested.
Works fine on a number of models, but when I call Project I get the
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,


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

Completed 200 OK in 34ms (Views: 3.0ms | ActiveRecord: 28.0ms)

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:

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs