nevermind...

I just realized that I'm asking rails to answer a question about an
environment that it's in the process of creating.  That won't work.


On Apr 4, 9:36 am, Rick <[email protected]> wrote:
> Simplest of template files, tst.rb, contains:
>
> PROJECT_NAME = File.basename(RAILS_ROOT)
> run 'echo ' + PROJECT_NAME
>
> Running command "rails tst -m ~/Rails_Tools/tst.rb" produces:
>
>       create
>       create  app/controllers
>       .
>       .
>       create  log/development.log
>       create  log/test.log
>     applying  template: /Users/rick/RailsTools/tst.rb
> Anonymous modules have no name to be referenced by
>
> Then, cd tst and running command "rake rails:template LOCATION=~/
> Rails_Tools/tst.rb" produces:
>
> (in /Users/rick/tst)
>     applying  template: /Users/rick/RailsTools/tst.rb
>    executing  echo tst from /Users/rick/tst
>      applied  /Users/rick/RailsTools/tst.rb
>
> Why the different behavior - what changes between rails runtime
> environment and rake runtime environment?
>
> Rick
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to