Forum: Ruby on Rails ActionController::Verification problem

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Leo -. (Guest)
on 2006-03-16 21:09
(Received via mailing list)

I have a subscriptions model and a 'new' action in subscriptions
controller to create new subscription. Also, I have a 'thankyou' view,
which I want to display only if user is just subscribed. So I want to
block access to http://localhost/subscriptions/thankyou action with a
 verify filter. Here is my code:

class SubscriptionsController < ApplicationController
  verify :only => :thankyou,
          :flash => :subscription,
	  :redirect_to => :index

    def index
      # new
      # render :action => 'new'

  def thankyou

I get

SystemStackError in Subscriptions#thankyou
stack level too deep


Can't figure out, what is wrong. I suppose an eternal loop might be a
cause, but I don't see any in this simple code. Any hints?

This topic is locked and can not be replied to.