# Using scaffolding/classic\_pagination error

**URL:** <https://www.ruby-forum.com/t/using-scaffolding-classic-pagination-error/133492>\
**Category:** Rails\
**Created:** [April 1, 2008, 1:03am UTC](https://www.ruby-forum.com/t/using-scaffolding-classic-pagination-error/133492 "2008-04-01T01:03:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rohits](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b782af/32.png) [@rohits](https://www.ruby-forum.com/u/rohits)\
**Post date:** [April 1, 2008, 1:03am UTC](https://www.ruby-forum.com/t/using-scaffolding-classic-pagination-error/133492/1 "2008-04-01T01:03:22Z")

</div>

So I’ll preface with: I am very new to Ruby and Rails. I’m using the  
2006 Lynda guide to Rails, and I just setup a simple scaffold based on a  
simple database, and when I try to “create”, I get this:

ActionController::InvalidAuthenticityToken

I’m not sure what the error means or how to correct it. I would  
appriciate any help.

Also, if scaffolding has been removed from Rails 2.0, has something  
replaced it? Or is that more advanced and I should wait till I learn  
more?

Thanks,  
Rohit

---

<div class="post-metadata">

**Author:** ![rohits](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/b782af/32.png) [@rohits](https://www.ruby-forum.com/u/rohits)\
**Post date:** [April 1, 2008, 3:10pm UTC](https://www.ruby-forum.com/t/using-scaffolding-classic-pagination-error/133492/2 "2008-04-01T15:10:17Z")

</div>

My guess is that your 2006 guide is not up to speed with your version of  
Rails…

Check your environment.rb for info on how 2.0 looks to do sessions…  
cookie session data is the default if I recall correctly.

When trying to use the db for session data, I was frequently getting  
MySQL Lost Connections. Haven’t seen one since moving to 2.0 and using  
the cookie store.

Active Scaffolding is available as a plugin I think, but 2.0 leans  
toward

ruby script/generate scaffold modelname field1:type field2:type etc…

for the simplest example (creates the controller, model, views as static  
files you can edit to your hearts content).
