# Any special tutorial for rails 2.0.2

**URL:** <https://www.ruby-forum.com/t/any-special-tutorial-for-rails-2-0-2/124179>\
**Category:** Rails\
**Created:** [December 26, 2007, 6:49am UTC](https://www.ruby-forum.com/t/any-special-tutorial-for-rails-2-0-2/124179 "2007-12-26T06:49:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![madhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/aca169/32.png) [@madhan](https://www.ruby-forum.com/u/madhan)\
**Post date:** [December 26, 2007, 6:49am UTC](https://www.ruby-forum.com/t/any-special-tutorial-for-rails-2-0-2/124179/1 "2007-12-26T06:49:12Z")

</div>

hi all,  
since i have started to learn the rails just now, i got shocked  
after seeing the file extentions from .rhtml to .html.erb…  
when i started to learn the ROR, i used rails 1.2.6 then i thought of  
installing the latest version of rails. then i gave it…  
gem install rails --include-dependencies … in console  
it installed rails 2.0.2  
then i created a new project with model and controller…  
in the controller i gave the code as  
scaffold :recipe  
then it says undefined variable ‘scaffold’ like this it gives for  
some keywords  
how can i solve this problem… is there any specific tutorial  
available for rails 2.0.2 in online. plz. guide me to know that…

another one questions…  
is there any posibilities to install 1.2.6 after uninstalling rails  
2.0.2

thanks in advance.

---

<div class="post-metadata">

**Author:** ![madhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/aca169/32.png) [@madhan](https://www.ruby-forum.com/u/madhan)\
**Post date:** [December 26, 2007, 7:04am UTC](https://www.ruby-forum.com/t/any-special-tutorial-for-rails-2-0-2/124179/2 "2007-12-26T07:04:17Z")

</div>

On Dec 25, 11:49 pm, Madhankumar Nagaraj \<rails-mailing-l…@andreas-  
[s.net](http://s.net)\> wrote:

> then it says undefined variable ‘scaffold’ like this it gives for  
> some keywords  
> how can i solve this problem… is there any specific tutorial  
> available for rails 2.0.2 in online. plz. guide me to know that…

Not a guru with 2.0.2, yet. I’ll have to let someone else answer this  
part.

> another one questions…  
> is there any posibilities to install 1.2.6 after uninstalling rails  
> 2.0.2

First, make sure you’ve updated gem to 0.9.5.

gem update system  
–or–  
gem update --system

Then, uninstall Rails 2.0.2

gem uninstall rails -v 2.0.2

Last, install Rails 1.2.6

gem install rails -v 1.2.6

–  
Travis

---

<div class="post-metadata">

**Author:** ![madhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/aca169/32.png) [@madhan](https://www.ruby-forum.com/u/madhan)\
**Post date:** [December 26, 2007, 7:34am UTC](https://www.ruby-forum.com/t/any-special-tutorial-for-rails-2-0-2/124179/3 "2007-12-26T07:34:31Z")

</div>

If you want scaffold either install 1.2.6 as explained above (the last  
version of rails to include the scaffold command) OR

Install the Scaffold plugin for Rails 2.0 which brings back the command.

[http://svn.rubyonrails.org/rails/plugins/scaffolding/](http://svn.rubyonrails.org/rails/plugins/scaffolding/)

You can install plugins rather easily. Go to the rails source code  
folder in the terminal and type

ruby script/plugin install  
[http://svn.rubyonrails.org/rails/plugins/scaffolding/](http://svn.rubyonrails.org/rails/plugins/scaffolding/)

and that should then install the scaffolding plugin which will give you  
back the command.

---

<div class="post-metadata">

**Author:** ![madhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/aca169/32.png) [@madhan](https://www.ruby-forum.com/u/madhan)\
**Post date:** [December 26, 2007, 8:19am UTC](https://www.ruby-forum.com/t/any-special-tutorial-for-rails-2-0-2/124179/4 "2007-12-26T08:19:57Z")

</div>

Madhankumar Nagaraj wrote:

> hi all,  
> since i have started to learn the rails just now, i got shocked  
> after seeing the file extentions from .rhtml to .html.erb…  
> when i started to learn the ROR, i used rails 1.2.6 then i thought of  
> installing the latest version of rails. then i gave it…  
> gem install rails --include-dependencies … in console  
> it installed rails 2.0.2  
> then i created a new project with model and controller…  
> in the controller i gave the code as  
> scaffold :recipe  
> then it says undefined variable ‘scaffold’ like this it gives for  
> some keywords  
> how can i solve this problem… is there any specific tutorial  
> available for rails 2.0.2 in online. plz. guide me to know that…
> 
> another one questions…  
> is there any posibilities to install 1.2.6 after uninstalling rails  
> 2.0.2
> 
> thanks in advance.

as of rails 2.0 you have to use the generator to generate scaffold like  
this:

./script/generate scaffold :modelname attribute1name:type  
attribute2name:type

this also generates the migration, testing, controller and views  
altogether so its much faster in that sense
