Code Monkey home page Code Monkey logo

rails-and-server-sent-events's People

Contributors

acdesouza avatar epigene avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rails-and-server-sent-events's Issues

config (cache_classes and eager_load) are set to false

Hi,

As per Readme you said the below settings from development.rb should be true but in code it is set to false.

Any reason why you reverted back to false ?

config.cache_classes = false

Do not eager load code on boot.

config.eager_load = false

ActionView::MissingTemplate (Missing template park/index_stream ...

Hi,

I am using your code in my app and I am getting below error:

tarted GET "/user_stream" for 127.0.0.1 at 2015-06-11 13:17:42 +0530
Processing by ParkController#index_stream as text/event-stream
Event Load (0.3ms) SELECT "events".* FROM "events" ORDER BY updated_at DESC, created_at DESC LIMIT 1
Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.3ms)

ActionView::MissingTemplate (Missing template park/index_stream, application/index_stream with {:locale=>[:en], :formats=>["text/event-stream"], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :coffee, :jbuilder]}. Searched in:

  • "/home/kpatil/work/nagaraj/svg_nload/app/views"
    ):
    actionview (4.2.1) lib/action_view/path_set.rb:46:in find' actionview (4.2.1) lib/action_view/lookup_context.rb:121:infind'
    actionview (4.2.1) lib/action_view/renderer/abstract_renderer.rb:18:in find_template' actionview (4.2.1) lib/action_view/renderer/template_renderer.rb:40:indetermine_template'
    actionview (4.2.1) lib/action_view/renderer/template_renderer.rb:8:in render' actionview (4.2.1) lib/action_view/renderer/renderer.rb:42:inrender_template'
    actionview (4.2.1) lib/action_view/renderer/renderer.rb:23:in render' actionview (4.2.1) lib/action_view/rendering.rb:100:in_render_template'
    actionpack (4.2.1) lib/action_controller/metal/streaming.rb:217:in _render_template' actionview (4.2.1) lib/action_view/rendering.rb:83:inrender_to_body'
    actionpack (4.2.1) lib/action_controller/metal/rendering.rb:32:in render_to_body' actionpack (4.2.1) lib/action_controller/metal/renderers.rb:37:inrender_to_body'
    actionpack (4.2.1) lib/abstract_controller/rendering.rb:25:in render' actionpack (4.2.1) lib/action_controller/metal/rendering.rb:16:inrender'
    actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:44:in block (2 levels) in render' activesupport (4.2.1) lib/active_support/core_ext/benchmark.rb:12:inblock in ms'
    /home/kpatil/.rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/benchmark.rb:303:in realtime' activesupport (4.2.1) lib/active_support/core_ext/benchmark.rb:12:inms'
    actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:44:in block in render' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:87:incleanup_view_runtime'
    activerecord (4.2.1) lib/active_record/railties/controller_runtime.rb:25:in cleanup_view_runtime' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:43:inrender'
    actionpack (4.2.1) lib/action_controller/metal/implicit_render.rb:10:in default_render' actionpack (4.2.1) lib/action_controller/metal/implicit_render.rb:5:insend_action'
    actionpack (4.2.1) lib/abstract_controller/base.rb:198:in process_action' actionpack (4.2.1) lib/action_controller/metal/rendering.rb:10:inprocess_action'
    actionpack (4.2.1) lib/abstract_controller/callbacks.rb:20:in block in process_action' activesupport (4.2.1) lib/active_support/callbacks.rb:117:incall'
    activesupport (4.2.1) lib/active_support/callbacks.rb:117:in call' activesupport (4.2.1) lib/active_support/callbacks.rb:555:inblock (2 levels) in compile'
    activesupport (4.2.1) lib/active_support/callbacks.rb:505:in call' activesupport (4.2.1) lib/active_support/callbacks.rb:505:incall'
    activesupport (4.2.1) lib/active_support/callbacks.rb:92:in _run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in_run_process_action_callbacks'
    activesupport (4.2.1) lib/active_support/callbacks.rb:81:in run_callbacks' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:19:inprocess_action'
    actionpack (4.2.1) lib/action_controller/metal/rescue.rb:29:in `process_action

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.