I believe the "after" filter was added in the 1.0 version of Sinatra.
Heroku only has the 0.9 series of Sinatra installed by default.  You
can specify the 1.0 version using the .gems manifest or Bundler.

On Jun 27, 6:18 pm, David <[email protected]> wrote:
> Hi All -
>
> Hoping someone can help me with this.  Haven't found anything in this
> group or a Google search.  I have a simple Sinatra app that fails to
> start if I have defined an "after" filter.  Here's the trace:
>
> ./app.rb:26: undefined method `after' for main:Object (NoMethodError)
>         from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 31:in `gem_original_require'
>         from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 31:in `require'
>         from config.ru:1
>         from /home/heroku_rack/heroku.ru:21
>         from /usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:
> 29:in `instance_eval'
>         from /usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:
> 29:in `initialize'
>         from /usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:
> 46:in `new'
>         from /usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:
> 46:in `map'
>         from /home/heroku_rack/heroku.ru:16
>         from /usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:
> 29:in `instance_eval'
>         from /usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:
> 29:in `initialize'
>         from /home/heroku_rack/heroku.ru:9:in `new'
>         from /home/heroku_rack/heroku.ru:9
>         from /usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:
> 29:in `instance_eval'
>         from /usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:
> 29:in `initialize'
>         from /home/heroku_rack/heroku.ru:1:in `new'
>         from /home/heroku_rack/heroku.ru:1
>
> Thanks for any ideas.
>
> -David

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" 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/heroku?hl=en.

Reply via email to