Colin Law wrote in post #1169453:

> Please in future copy/paste the relevant code rather than using a
> screenshot.  It is much easier for us to read, especially on mobile
> devices.
>
> Are you running in production mode, if so have you restarted the
> server since any changes made?
>
> What is in the log file for the post?
>
> Copy/paste routes.rb here please.
>
> Colin

yes i'm in production mode , i run two command on my server before my
tests

-rake assets:precompile
-service apache2 reload

here is my log file for the post

Started POST "/admin/archiveMail" for 172.16.20.28 at 2015-03-02
10:59:07 +0100

AbstractController::ActionNotFound (The action 'archiveMail' could not
be found for AdminController):
  actionpack (3.2.14) lib/abstract_controller/base.rb:116:in `process'
  actionpack (3.2.14) lib/abstract_controller/rendering.rb:45:in
`process'
  actionpack (3.2.14) lib/action_controller/metal.rb:203:in `dispatch'
  actionpack (3.2.14)
lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
  actionpack (3.2.14) lib/action_controller/metal.rb:246:in `block in
action'
  actionpack (3.2.14) lib/action_dispatch/routing/route_set.rb:73:in
`call'
  actionpack (3.2.14) lib/action_dispatch/routing/route_set.rb:73:in
`dispatch'
  actionpack (3.2.14) lib/action_dispatch/routing/route_set.rb:36:in
`call'
  journey (1.0.4) lib/journey/router.rb:68:in `block in call'
  journey (1.0.4) lib/journey/router.rb:56:in `each'
  journey (1.0.4) lib/journey/router.rb:56:in `call'
  actionpack (3.2.14) lib/action_dispatch/routing/route_set.rb:608:in
`call'
  pdfkit (0.5.4) lib/pdfkit/middleware.rb:16:in `call'
  actionpack (3.2.14)
lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
  rack (1.4.5) lib/rack/etag.rb:23:in `call'
  rack (1.4.5) lib/rack/conditionalget.rb:35:in `call'
  actionpack (3.2.14) lib/action_dispatch/middleware/head.rb:14:in
`call'
  actionpack (3.2.14)
lib/action_dispatch/middleware/params_parser.rb:21:in `call'
  actionpack (3.2.14) lib/action_dispatch/middleware/flash.rb:242:in
`call'
  rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'
  rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'
  actionpack (3.2.14) lib/action_dispatch/middleware/cookies.rb:341:in
`call'
  activerecord (3.2.14) lib/active_record/query_cache.rb:64:in `call'
  activerecord (3.2.14)
lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in
`call'
  actionpack (3.2.14) lib/action_dispatch/middleware/callbacks.rb:28:in
`block in call'
  activesupport (3.2.14) lib/active_support/callbacks.rb:405:in
`_run__4592187661148133351__call__300096097883725408__callbacks'
  activesupport (3.2.14) lib/active_support/callbacks.rb:405:in
`__run_callback'
  activesupport (3.2.14) lib/active_support/callbacks.rb:385:in
`_run_call_callbacks'
  activesupport (3.2.14) lib/active_support/callbacks.rb:81:in
`run_callbacks'
  actionpack (3.2.14) lib/action_dispatch/middleware/callbacks.rb:27:in
`call'
  rack (1.4.5) lib/rack/sendfile.rb:102:in `call'
  actionpack (3.2.14) lib/action_dispatch/middleware/remote_ip.rb:31:in
`call'
  actionpack (3.2.14)
lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
  actionpack (3.2.14)
lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
  railties (3.2.14) lib/rails/rack/logger.rb:32:in `call_app'
  railties (3.2.14) lib/rails/rack/logger.rb:16:in `block in call'
  activesupport (3.2.14) lib/active_support/tagged_logging.rb:22:in
`tagged'
  railties (3.2.14) lib/rails/rack/logger.rb:16:in `call'
  actionpack (3.2.14) lib/action_dispatch/middleware/request_id.rb:22:in
`call'
  rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
  rack (1.4.5) lib/rack/runtime.rb:17:in `call'
  activesupport (3.2.14)
lib/active_support/cache/strategy/local_cache.rb:72:in `call'
  rack (1.4.5) lib/rack/lock.rb:15:in `call'
  actionpack (3.2.14) lib/action_dispatch/middleware/static.rb:63:in
`call'
  rack-cache (1.2) lib/rack/cache/context.rb:136:in `forward'
  rack-cache (1.2) lib/rack/cache/context.rb:143:in `pass'
  rack-cache (1.2) lib/rack/cache/context.rb:155:in `invalidate'
  rack-cache (1.2) lib/rack/cache/context.rb:71:in `call!'
  rack-cache (1.2) lib/rack/cache/context.rb:51:in `call'
  railties (3.2.14) lib/rails/engine.rb:484:in `call'
  railties (3.2.14) lib/rails/application.rb:231:in `call'
  railties (3.2.14) lib/rails/railtie/configurable.rb:30:in
`method_missing'
  passenger (4.0.18)
lib/phusion_passenger/rack/thread_handler_extension.rb:77:in
`process_request'
  passenger (4.0.18)
lib/phusion_passenger/request_handler/thread_handler.rb:140:in
`accept_and_process_next_request'
  passenger (4.0.18)
lib/phusion_passenger/request_handler/thread_handler.rb:108:in
`main_loop'
  passenger (4.0.18) lib/phusion_passenger/request_handler.rb:441:in
`block (3 levels) in start_threads'

and here is my routes.rb

WebGTI::Application.routes.draw do

root :to =>'login#index'
match ':controller(/:action(/:id(.format)))'
end


thank you for your help !

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/1b5b03f460be933bba48202c8cb89c5c%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to