ActionController::Verification problem (sorry if it is doubl


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 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