-
Notifications
You must be signed in to change notification settings - Fork 16
Description
I love the idea of this wizard but have been unable to get it to work. I've created a simple test Rails application, with one model. Followed the setup stuff, and when I try to create a new instance of the model (with the hope of getting to the first step of the wizard), I get in a redirect loop until the browser gives up:
Processing BooksController#show (for 192.168.1.101 at 2010-08-01 22:48:00) [GET]
Parameters: {"id"=>"step1"}
Redirected to http://192.168.1.112:3000/books/step1
Filter chain halted as [:guard_entry] rendered_or_redirected.
Completed in 3ms (DB: 1) | 302 Found [http://192.168.1.112/books/step1]
SQL (0.1ms) SET NAMES 'utf8'
SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
Book Columns (0.7ms) SHOW FIELDS FROM books
Processing BooksController#show (for 192.168.1.101 at 2010-08-01 22:48:00) [GET]
Parameters: {"id"=>"step1"}
Redirected to http://192.168.1.112:3000/books/step1
Filter chain halted as [:guard_entry] rendered_or_redirected.
Completed in 1ms (DB: 1) | 302 Found [http://192.168.1.112/books/step1]
SQL (0.1ms) SET NAMES 'utf8'
SQL (0.1ms) SET SQL_AUTO_IS_NULL=0
Book Columns (1.2ms) SHOW FIELDS FROM books
This is what my routes.rb looks like, in case you're wondering:
ActionController::Routing::Routes.draw do |map|
map.resources :books
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
end
Here's my model:
ActionController::Routing::Routes.draw do |map|
map.resources :books
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
end
My controller is nothing more than a scaffold with act_wizardly_for :book. I have tried turning off guard, but adding the option :guard => false. When doing that I get the scaffold new. When directly trying to browse to step1, the show method gets run with "id" => "step1".
I'm using Rails 2.3.5 with Ruby 1.8.7 and wizardly version 0.1.8.9. Anybody have any clue what I've screwed up?
Thanks,
evan