Panowie - mam bardzo dziwny problem - napisze od razu że robię tutorial m.hartl coś a la twitter app
Mianowicie za pomocą terminala wygenerowałem sobie kontroler komendą
rails generate controller StaticPages home help
i ładnie mi wygenerował kontroler
Następnie zrobiłem prawie to samo by sprawdzić co się stanie czy napisze czy nie(etc. w celach edukacyjnych) wrzuciłem komendę
rails generate controller static_pages
przerwałem ją skrótem klawiszowym bodaj ctrl+c(gdy sytał mi się czy napisac pliki) i totalnie wysypało mi się całe środowisko - wtf?!?!?! na jakąkoliek komedne próbowałem to odkręcić rails destroy, czy rails c
printuje mi cos takiego
wojtek@wojtek-K73SV:~/Ruby/ws_app$ rails generate controller static_pages
/home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.9/lib/action_dispatch/routing/mapper.rb:181:in `default_controller_and_action': missing :controller (ArgumentError)
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.9/lib/action_dispatch/routing/mapper.rb:78:in `normalize_options!'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.9/lib/action_dispatch/routing/mapper.rb:61:in `initialize'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.9/lib/action_dispatch/routing/mapper.rb:1304:in `new'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.9/lib/action_dispatch/routing/mapper.rb:1304:in `add_route'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.9/lib/action_dispatch/routing/mapper.rb:1284:in `decomposed_match'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.9/lib/action_dispatch/routing/mapper.rb:1270:in `block in match'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.9/lib/action_dispatch/routing/mapper.rb:1270:in `each'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.9/lib/action_dispatch/routing/mapper.rb:1270:in `match'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.9/lib/action_dispatch/routing/mapper.rb:507:in `map_method'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.9/lib/action_dispatch/routing/mapper.rb:469:in `get'
from /home/wojtek/Ruby/ws_app/config/routes.rb:2:in `block in <top (required)>'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.9/lib/action_dispatch/routing/route_set.rb:282:in `instance_exec'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.9/lib/action_dispatch/routing/route_set.rb:282:in `eval_block'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/actionpack-3.2.9/lib/action_dispatch/routing/route_set.rb:260:in `draw'
from /home/wojtek/Ruby/ws_app/config/routes.rb:1:in `<top (required)>'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:245:in `load'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:245:in `block in load'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:236:in `load_dependency'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:245:in `load'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/application/routes_reloader.rb:40:in `block in load_paths'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/application/routes_reloader.rb:40:in `each'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/application/routes_reloader.rb:40:in `load_paths'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/application/routes_reloader.rb:16:in `reload!'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/application/routes_reloader.rb:26:in `block in updater'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/activesupport-3.2.9/lib/active_support/file_update_checker.rb:78:in `call'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/activesupport-3.2.9/lib/active_support/file_update_checker.rb:78:in `execute'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/application/routes_reloader.rb:27:in `updater'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/application/routes_reloader.rb:7:in `execute_if_updated'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/application/finisher.rb:66:in `block in <module:Finisher>'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/initializable.rb:30:in `instance_exec'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/initializable.rb:30:in `run'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/initializable.rb:55:in `block in run_initializers'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/initializable.rb:54:in `each'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/initializable.rb:54:in `run_initializers'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/application.rb:136:in `initialize!'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /home/wojtek/Ruby/ws_app/config/environment.rb:5:in `<top (required)>'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/application.rb:103:in `require'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/application.rb:103:in `require_environment!'
from /home/wojtek/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/commands.rb:25:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
o co kaman? czemu mi wyrzuciło tak jakby całe środowisko nic nie che się w tej chwili włączyć a jak wszedłem do innego folderu i włączyłem np. rails c to wyrzucił mi że nie ma rake-0.9.2.2 wiec mu dałem bundle install natomiast w pierwszym przydatku nawet to nie pomaga tj. bundle install
aha i jeszcze jedna kwestia czy mogę w jakiś sposób/ jakaś komendą wyświetlić działające/wygenerowane kontrolery