When was scaffold_resource released? I was under the impression form blogs and article that it was part of rails 1.2 (e.g. http://softiesonrails.com/2006/9/25/quick-guide-to-the-new-scaffold_resource-generator But $ rails -v Rails 1.2.1 $ ruby script/generator scaffold_resource ruby: No such file or directory -- script/generator (LoadError) --~--~---------~--~----~------------~-------~--~----~ 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 2/3/07, Anton Aylward <anton-XdPx9462FWc@public.gmane.org> wrote:> > When was scaffold_resource released? > ... > $ rails -v > Rails 1.2.1 > $ ruby script/generator scaffold_resource > ruby: No such file or directory -- script/generator (LoadError) >that error looks like a problem with your current working directory. are you in a rails app when running that? can you run just `ruby ./script/generator`? if not then your path is the issue. scaffold_resource generator is in 1.2 ed --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Ed Hickey said the following on 02/03/2007 12:46 PM:> On 2/3/07, Anton Aylward <anton-XdPx9462FWc@public.gmane.org> wrote: >> When was scaffold_resource released? >> ... >> $ rails -v >> Rails 1.2.1 >> $ ruby script/generator scaffold_resource >> ruby: No such file or directory -- script/generator (LoadError) >> > > that error looks like a problem with your current working directory. > are you in a rails app when running that? can you run just `ruby > ./script/generator`? if not then your path is the issue. > > scaffold_resource generator is in 1.2 >After much checking of rails, gems and whatever I realise that my cut-and-paste from http://www.softiesonrails.com/2006/9/26/extra-tip-regarding-scaffold_resource I should have read the comments! DUH! (thunk on the head!) /a -- The only time you have too much fuel is when you''re on fire. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---