netzke / netzke-core

Framework for Sencha Ext JS + Ruby on Rails client-server components
http://netzke.org
Other
263 stars 77 forks source link

netzke 0.8.4 can not work on rails 4.0.2 #75

Closed TangMonk closed 10 years ago

TangMonk commented 10 years ago

when I add "netzke" to route

$ rake routes

rake aborted!
You should not use the `match` method in your router without specifying an HTTP method.
If you want to expose your action to both GET and POST, add `via: [:get, :post]` option.
If you want to expose your action to GET, use `get` in the router:
  Instead of: match "controller#action"
  Do: get "controller#action"
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-4.0.2/lib/action_dispatch/routing/mapper.rb:191:in `normalize_conditions!'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-4.0.2/lib/action_dispatch/routing/mapper.rb:67:in `initialize'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-4.0.2/lib/action_dispatch/routing/mapper.rb:1443:in `new'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-4.0.2/lib/action_dispatch/routing/mapper.rb:1443:in `add_route'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-4.0.2/lib/action_dispatch/routing/mapper.rb:1422:in `decomposed_match'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-4.0.2/lib/action_dispatch/routing/mapper.rb:1403:in `block in match'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-4.0.2/lib/action_dispatch/routing/mapper.rb:1394:in `each'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-4.0.2/lib/action_dispatch/routing/mapper.rb:1394:in `match'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/netzke-core-0.8.4/lib/netzke/core/railz/routes.rb:18:in `netzke'
/Users/tangmonk/MyGit/VideoDeviceManagement/config/routes.rb:2:in `block in <top (required)>'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-4.0.2/lib/action_dispatch/routing/route_set.rb:341:in `instance_exec'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-4.0.2/lib/action_dispatch/routing/route_set.rb:341:in `eval_block'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-4.0.2/lib/action_dispatch/routing/route_set.rb:319:in `draw'
/Users/tangmonk/MyGit/VideoDeviceManagement/config/routes.rb:1:in `<top (required)>'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:223:in `load'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:223:in `block in load'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:214:in `load_dependency'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:223:in `load'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/railties-4.0.2/lib/rails/application/routes_reloader.rb:40:in `block in load_paths'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/railties-4.0.2/lib/rails/application/routes_reloader.rb:40:in `each'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/railties-4.0.2/lib/rails/application/routes_reloader.rb:40:in `load_paths'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/railties-4.0.2/lib/rails/application/routes_reloader.rb:16:in `reload!'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/railties-4.0.2/lib/rails/application/routes_reloader.rb:26:in `block in updater'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-4.0.2/lib/active_support/file_update_checker.rb:75:in `call'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-4.0.2/lib/active_support/file_update_checker.rb:75:in `execute'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/railties-4.0.2/lib/rails/application/routes_reloader.rb:27:in `updater'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/railties-4.0.2/lib/rails/application/routes_reloader.rb:6:in `execute_if_updated'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/railties-4.0.2/lib/rails/application/finisher.rb:69:in `block in <module:Finisher>'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/railties-4.0.2/lib/rails/initializable.rb:30:in `instance_exec'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/railties-4.0.2/lib/rails/initializable.rb:30:in `run'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/railties-4.0.2/lib/rails/initializable.rb:55:in `block in run_initializers'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/railties-4.0.2/lib/rails/initializable.rb:54:in `run_initializers'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/railties-4.0.2/lib/rails/application.rb:215:in `initialize!'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/railties-4.0.2/lib/rails/railtie/configurable.rb:30:in `method_missing'
/Users/tangmonk/MyGit/VideoDeviceManagement/config/environment.rb:5:in `<top (required)>'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in `require'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in `block in require'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:214:in `load_dependency'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in `require'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/railties-4.0.2/lib/rails/application.rb:189:in `require_environment!'
/Users/tangmonk/.rvm/gems/ruby-1.9.3-p448/gems/railties-4.0.2/lib/rails/application.rb:250:in `block in run_tasks_blocks'
Tasks: TOP => routes => environment
(See full trace by running task with --trace)

Well, since not supported rails 4, but why readme says support rails ~> 4 ?

mxgrn commented 10 years ago

master is not 0.8.4, see https://github.com/netzke/netzke-core/tree/0-8