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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Dec 25, 11:49 pm, Madhankumar Nagaraj <rails-mailing-l...@andreas- s.net> 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...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.2First, 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---