Generator Hangs After First Exists Output

15 views
Skip to first unread message

lleger

unread,
Jan 8, 2010, 1:30:19 AM1/8/10
to web-app-theme-generator
I started using the web-app-theme-generator yesterday. I installed it
as a gem from github and began following the 2 minute guide (http://
gravityblast.com/2009/07/30/2-minutes-admin-layout-with-rails-and-the-
web-app-theme-generator/). I successfully generated an application
view using script/generate theme, however when I used script/generate
themed it fails. It outputs the first exists statement (exists app/
views/<name of scaffolded controller/model>). I've tried every
combination of options possible with the same result. Running with
sudo outputs the same result. After some time, I interrupt (with ctrl-
C) and this is the output:

/Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/rails_generator/
commands.rb:102:in `gets': Interrupt
from /Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/rails_generator/
commands.rb:102:in `force_file_collision?'
from /Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/rails_generator/
commands.rb:233:in `file'
from /Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/rails_generator/
commands.rb:298:in `template'
from /Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/rails_generator/
manifest.rb:47:in `send'
from /Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/rails_generator/
manifest.rb:47:in `send_actions'
from /Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/rails_generator/
manifest.rb:46:in `each'
from /Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/rails_generator/
manifest.rb:46:in `send_actions'
from /Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/rails_generator/
manifest.rb:31:in `replay'
from /Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/rails_generator/
commands.rb:42:in `invoke!'
from /Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/rails_generator/
scripts/../scripts.rb:31:in `run'
from /Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/commands/generate.rb:
6
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`require'
from script/generate:3

I'm running on Mac OS X 10.6.2 on Apache 2 via Passenger. Here's my
installation information:

Ruby:
ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]

gem:
1.3.5

gem list:
actionmailer (2.3.5, 2.2.2, 1.3.6)
actionpack (2.3.5, 2.2.2, 1.13.6)
actionwebservice (1.2.6)
activerecord (2.3.5, 2.2.2, 1.15.6)
activeresource (2.3.5, 2.2.2)
activesupport (2.3.5, 2.2.2, 1.4.4)
acts_as_ferret (0.4.4, 0.4.3)
capistrano (2.5.10, 2.5.2)
cgi_multipart_eof_fix (2.5.0)
chronic (0.2.3)
daemons (1.0.10)
dnssd (1.3.1, 0.6.0)
faker (0.3.1)
fastthread (1.0.7, 1.0.1)
fcgi (0.8.8, 0.8.7)
ferret (0.11.6)
gem_plugin (0.2.3)
highline (1.5.1, 1.5.0)
hoe (2.4.0)
hpricot (0.8.2, 0.6.164)
imdb (0.6.2)
javan-whenever (0.3.7)
json_pure (1.2.0)
libxml-ruby (1.1.3, 1.1.2)
mislav-will_paginate (2.3.11)
mongrel (1.1.5)
mysql (2.8.1)
needle (1.3.0)
net-scp (1.0.2, 1.0.1)
net-sftp (2.0.4, 2.0.1, 1.1.1)
net-ssh (2.0.17, 2.0.4, 1.1.4)
net-ssh-gateway (1.0.1, 1.0.0)
nokogiri (1.4.1)
passenger (2.2.8, 2.2.5)
rack (1.0.1)
rails (2.3.5, 2.2.2, 1.2.6)
rake (0.8.7, 0.8.3)
RedCloth (4.2.2, 4.1.1)
ruby-openid (2.1.7, 2.1.2)
ruby-yadis (0.3.4)
rubyforge (2.0.3)
rubygems-update (1.3.5)
rubynode (0.1.5)
sqlite3-ruby (1.2.5, 1.2.4)
termios (0.9.4)
tvdb (0.0.1)
web-app-theme (0.5.0)
whenever (0.4.1)
xmpp4r (0.5, 0.4)
yui-compressor (0.9.1)

Andrea Franz

unread,
Jan 8, 2010, 8:59:34 AM1/8/10
to web-app-the...@googlegroups.com
I'm going to give a try again with rails 2.3.5 and I'll answer asap

--
Andrea Franz
http://gravityblast.com

Andrea Franz

unread,
Jan 8, 2010, 9:23:42 AM1/8/10
to web-app-the...@googlegroups.com
I did it without errors...here what I did (with ruby 1.8.7 on mac os x
with the web-app-theme 0.5.0 gem):

rails blog
cd blog
script/generate scaffold post title:string body:text
rake db:migrate
script/generate theme
script/generate themed posts

here it asked me: overwrite app/views/posts/index.html.erb? (enter "h"
for help) [Ynaqdh]

I wrote "a", and all went ok.
Do you have errors doing the same?

Reply all
Reply to author
Forward
0 new messages