Any special tutorial for rails 2.0.2

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.

On Dec 25, 11:49 pm, Madhankumar Nagaraj <rails-mailing-l…@andreas-
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

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/

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/

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

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

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