Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while accessing to /letter_opener #32

Closed
mdesantis opened this issue Sep 12, 2014 · 2 comments
Closed

Error while accessing to /letter_opener #32

mdesantis opened this issue Sep 12, 2014 · 2 comments

Comments

@mdesantis
Copy link
Contributor

Environment:

  • ruby 2.1.2
  • rails 4.1.5
  • letter_opener 1.2.0
  • letter_opener_web 1.2.2
  • sprockets 2.11.0
  • sprockets-rails 2.1.4

LetterOpenerWeb relevant code parts:

  • config/development.rb
  config.action_mailer.delivery_method = :letter_opener_web`
  config.assets.precompile += %w( letter_opener_web/glyphicons-halflings.png
                                  letter_opener_web/glyphicons-halflings-white.png )
  • config/routes.rb
  mount LetterOpenerWeb::Engine, at: '/letter_opener'

Action: accessing at /letter_opener path

Error log:

Started GET "/letter_opener/" for 127.0.0.1 at 2014-09-12 10:27:21 +0200
Processing by LetterOpenerWeb::LettersController#index as HTML
  Rendered /home/user/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/letter_opener_web-1.2.2/app/views/letter_opener_web/letters/index.html.erb within layouts/letter_opener_web/application (9.3ms)
Completed 500 Internal Server Error in 620ms

ActionView::Template::Error (Asset names passed to helpers should not include the "/assets/" prefix. Instead of "/assets/letter_opener_web/blue-dot.ico", use "letter_opener_web/blue-dot.ico"):
    4:   <title>LetterOpenerWeb</title>
    5:   <%= stylesheet_link_tag    "letter_opener_web/application", :media => "all" %>
    6:   <%= javascript_include_tag "letter_opener_web/application" %>
    7:   <%= favicon_link_tag       asset_path("letter_opener_web/blue-dot.ico"), :rel => "icon" %>
    8:   <%= csrf_meta_tags %>
    9: </head>
   10: <body>
  sprockets-rails (2.1.4) lib/sprockets/rails/helper.rb:200:in `check_errors_for'
  sprockets-rails (2.1.4) lib/sprockets/rails/helper.rb:89:in `asset_path'
  actionview (4.1.5) lib/action_view/helpers/asset_url_helper.rb:281:in `image_path'
  actionview (4.1.5) lib/action_view/helpers/asset_tag_helper.rb:169:in `favicon_link_tag'
  letter_opener_web (1.2.2) app/views/layouts/letter_opener_web/application.html.erb:7:in `__home_user__rbenv_versions_______lib_ruby_gems_______gems_letter_opener_web_______app_views_layouts_letter_opener_web_application_html_erb___4194368318152562711_70049374559040'
  actionview (4.1.5) lib/action_view/template.rb:145:in `block in render'
  activesupport (4.1.5) lib/active_support/notifications.rb:161:in `instrument'
  actionview (4.1.5) lib/action_view/template.rb:339:in `instrument'
  actionview (4.1.5) lib/action_view/template.rb:143:in `render'
  actionview (4.1.5) lib/action_view/renderer/template_renderer.rb:67:in `render_with_layout'
  actionview (4.1.5) lib/action_view/renderer/template_renderer.rb:53:in `render_template'
  actionview (4.1.5) lib/action_view/renderer/template_renderer.rb:17:in `render'
  actionview (4.1.5) lib/action_view/renderer/renderer.rb:42:in `render_template'
  actionview (4.1.5) lib/action_view/renderer/renderer.rb:23:in `render'
  actionview (4.1.5) lib/action_view/rendering.rb:99:in `_render_template'
  actionpack (4.1.5) lib/action_controller/metal/streaming.rb:217:in `_render_template'
  actionview (4.1.5) lib/action_view/rendering.rb:82:in `render_to_body'
  actionpack (4.1.5) lib/action_controller/metal/rendering.rb:32:in `render_to_body'
  actionpack (4.1.5) lib/action_controller/metal/renderers.rb:32:in `render_to_body'
  actionpack (4.1.5) lib/abstract_controller/rendering.rb:25:in `render'
  actionpack (4.1.5) lib/action_controller/metal/rendering.rb:16:in `render'
  actionpack (4.1.5) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render'
  activesupport (4.1.5) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
  /home/user/.rbenv/versions/2.1.2/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'
  activesupport (4.1.5) lib/active_support/core_ext/benchmark.rb:12:in `ms'
  actionpack (4.1.5) lib/action_controller/metal/instrumentation.rb:41:in `block in render'
  actionpack (4.1.5) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
  activerecord (4.1.5) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
  actionpack (4.1.5) lib/action_controller/metal/instrumentation.rb:40:in `render'
  actionpack (4.1.5) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
  actionpack (4.1.5) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
  actionpack (4.1.5) lib/abstract_controller/base.rb:189:in `process_action'
  actionpack (4.1.5) lib/action_controller/metal/rendering.rb:10:in `process_action'
  actionpack (4.1.5) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
  activesupport (4.1.5) lib/active_support/callbacks.rb:113:in `call'
  activesupport (4.1.5) lib/active_support/callbacks.rb:113:in `call'
  activesupport (4.1.5) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional'
  activesupport (4.1.5) lib/active_support/callbacks.rb:149:in `call'
  activesupport (4.1.5) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional'
  activesupport (4.1.5) lib/active_support/callbacks.rb:166:in `call'
  activesupport (4.1.5) lib/active_support/callbacks.rb:166:in `block in halting'
  activesupport (4.1.5) lib/active_support/callbacks.rb:229:in `call'
  activesupport (4.1.5) lib/active_support/callbacks.rb:229:in `block in halting'
  activesupport (4.1.5) lib/active_support/callbacks.rb:229:in `call'
  activesupport (4.1.5) lib/active_support/callbacks.rb:229:in `block in halting'
  activesupport (4.1.5) lib/active_support/callbacks.rb:166:in `call'
  activesupport (4.1.5) lib/active_support/callbacks.rb:166:in `block in halting'
  activesupport (4.1.5) lib/active_support/callbacks.rb:166:in `call'
  activesupport (4.1.5) lib/active_support/callbacks.rb:166:in `block in halting'
  activesupport (4.1.5) lib/active_support/callbacks.rb:86:in `call'
  activesupport (4.1.5) lib/active_support/callbacks.rb:86:in `run_callbacks'
  actionpack (4.1.5) lib/abstract_controller/callbacks.rb:19:in `process_action'
  actionpack (4.1.5) lib/action_controller/metal/rescue.rb:29:in `process_action'
  actionpack (4.1.5) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
  activesupport (4.1.5) lib/active_support/notifications.rb:159:in `block in instrument'
  activesupport (4.1.5) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
  activesupport (4.1.5) lib/active_support/notifications.rb:159:in `instrument'
  actionpack (4.1.5) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
  actionpack (4.1.5) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
  activerecord (4.1.5) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
  actionpack (4.1.5) lib/abstract_controller/base.rb:136:in `process'
  actionview (4.1.5) lib/action_view/rendering.rb:30:in `process'
  actionpack (4.1.5) lib/action_controller/metal.rb:196:in `dispatch'
  actionpack (4.1.5) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
  actionpack (4.1.5) lib/action_controller/metal.rb:232:in `block in action'
  actionpack (4.1.5) lib/action_dispatch/routing/route_set.rb:82:in `call'
  actionpack (4.1.5) lib/action_dispatch/routing/route_set.rb:82:in `dispatch'
  actionpack (4.1.5) lib/action_dispatch/routing/route_set.rb:50:in `call'
  actionpack (4.1.5) lib/action_dispatch/journey/router.rb:71:in `block in call'
  actionpack (4.1.5) lib/action_dispatch/journey/router.rb:59:in `each'
  actionpack (4.1.5) lib/action_dispatch/journey/router.rb:59:in `call'
  actionpack (4.1.5) lib/action_dispatch/routing/route_set.rb:678:in `call'
  railties (4.1.5) lib/rails/engine.rb:514:in `call'
  railties (4.1.5) lib/rails/railtie.rb:194:in `public_send'
  railties (4.1.5) lib/rails/railtie.rb:194:in `method_missing'
  actionpack (4.1.5) lib/action_dispatch/journey/router.rb:71:in `block in call'
  actionpack (4.1.5) lib/action_dispatch/journey/router.rb:59:in `each'
  actionpack (4.1.5) lib/action_dispatch/journey/router.rb:59:in `call'
  actionpack (4.1.5) lib/action_dispatch/routing/route_set.rb:678:in `call'
  omniauth (1.2.2) lib/omniauth/strategy.rb:186:in `call!'
  omniauth (1.2.2) lib/omniauth/strategy.rb:164:in `call'
  warden (1.2.3) lib/warden/manager.rb:35:in `block in call'
  warden (1.2.3) lib/warden/manager.rb:34:in `catch'
  warden (1.2.3) lib/warden/manager.rb:34:in `call'
  rack (1.5.2) lib/rack/etag.rb:23:in `call'
  rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
  rack (1.5.2) lib/rack/head.rb:11:in `call'
  actionpack (4.1.5) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
  actionpack (4.1.5) lib/action_dispatch/middleware/flash.rb:254:in `call'
  rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
  rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
  actionpack (4.1.5) lib/action_dispatch/middleware/cookies.rb:560:in `call'
  activerecord (4.1.5) lib/active_record/query_cache.rb:36:in `call'
  activerecord (4.1.5) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
  activerecord (4.1.5) lib/active_record/migration.rb:380:in `call'
  actionpack (4.1.5) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
  activesupport (4.1.5) lib/active_support/callbacks.rb:82:in `run_callbacks'
  actionpack (4.1.5) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
  actionpack (4.1.5) lib/action_dispatch/middleware/reloader.rb:73:in `call'
  actionpack (4.1.5) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
  actionpack (4.1.5) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
  actionpack (4.1.5) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
  railties (4.1.5) lib/rails/rack/logger.rb:38:in `call_app'
  railties (4.1.5) lib/rails/rack/logger.rb:20:in `block in call'
  activesupport (4.1.5) lib/active_support/tagged_logging.rb:68:in `block in tagged'
  activesupport (4.1.5) lib/active_support/tagged_logging.rb:26:in `tagged'
  activesupport (4.1.5) lib/active_support/tagged_logging.rb:68:in `tagged'
  railties (4.1.5) lib/rails/rack/logger.rb:20:in `call'
  quiet_assets (1.0.3) lib/quiet_assets.rb:23:in `call_with_quiet_assets'
  actionpack (4.1.5) lib/action_dispatch/middleware/request_id.rb:21:in `call'
  rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
  rack (1.5.2) lib/rack/runtime.rb:17:in `call'
  activesupport (4.1.5) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
  rack (1.5.2) lib/rack/lock.rb:17:in `call'
  actionpack (4.1.5) lib/action_dispatch/middleware/static.rb:64:in `call'
  rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
  railties (4.1.5) lib/rails/engine.rb:514:in `call'
  railties (4.1.5) lib/rails/application.rb:144:in `call'
  rack (1.5.2) lib/rack/lock.rb:17:in `call'
  rack (1.5.2) lib/rack/content_length.rb:14:in `call'
  rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
@mdesantis
Copy link
Contributor Author

Downgrading sprockets-rails from 2.1.4 to 2.1.3 solves the problem

@fgrehm
Copy link
Owner

fgrehm commented Sep 12, 2014

Fixed by GH-33

@fgrehm fgrehm closed this as completed Sep 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants