dewski / kss-rails Goto Github PK
View Code? Open in Web Editor NEWA rails engine for @kneath's KSS documentation
License: MIT License
A rails engine for @kneath's KSS documentation
License: MIT License
In our layouts directory, there is a kss/application.html.erb file but it's not being picked up by the gem when going to /kss. Instead, it's using the main application layout. Which is causing this error:
After adding the kss-rails
gem and running rails generate kss:install
, I can see the KSS line was added to my routes, but going to /kss
(and as far as I can tell, only URLs that start with /kss
) results in this error:
Routing Error
No route matches {:controller=>"statements"}
Try running
rake routes
for more information on available routes.
We do have a StatementsController
, and it is in fact reachable (still), though the URL isn’t /statements
.
Is KSS trying to do something special with our existing routes or controllers?
What might be causing this error?
I have followed the steps in the readme but having trouble viewing the styleguide.
My routes.rb
mount Kss::Engine => '/kss' if Rails.env.development?
I have the files
app/views/kss/home/index.html.erb
app/views/kss/home/styleguide.html.erb
styleguide.html.erb includes:
<%= styleguide_block '1.0' do -%>
<button class="$modifier_class">Example Button</button>
<% end -%>
app/assets/stylesheets/application.css.scss includes:
/*
A button suitable for giving stars to someone.
:hover - Subtle hover highlight.
.stars-given - A highlight indicating you've already given a star.
.stars-given:hover - Subtle hover highlight on top of stars-given styling.
.disabled - Dims the button to indicate it cannot be used.
Styleguide 1.0
*/
/kss shows:
WELCOME!
This is an example styleguide. To customize this page, create a file at app/views/kss/home/index.html.erb.
/kss/styleguide shows:
NoMethodError at /styleguide
undefined method `styleguide_block' for #<#<Class:0x007fce7f4eebc0>:0x007fce7ca23418>
How did the named path kss.styleguide_path
get set? I can't seem to replicate the pattern, even after forking the project.
My routes:
Kss::Engine.routes.draw do
get '/text' => 'home#text',
get '/buttons' => 'home#buttons'
get '/modal' => 'home#modal'
get '/forms' => 'home#forms'
get '/hints' => 'home#hints'
get '/toggle-box' => 'home#toggle_box', :as => 'toggle_box'
root :to => 'home#index'
end
My controller (modeled off the styleguide code):
module Kss
class ApplicationController < ::ApplicationController
layout 'kss/application'
private
def text
@text ||= Kss::Parser.new(File.expand_path('app/assets/stylesheets', Rails.root))
end
helper_method :text
def buttons
@buttons ||= Kss::Parser.new(File.expand_path('app/assets/stylesheets', Rails.root))
end
helper_method :buttons
def modal
@modal ||= Kss::Parser.new(File.expand_path('app/assets/stylesheets', Rails.root))
end
helper_method :modal
def forms
@forms ||= Kss::Parser.new(File.expand_path('app/assets/stylesheets', Rails.root))
end
helper_method :forms
def hints
@hints ||= Kss::Parser.new(File.expand_path('app/assets/stylesheets', Rails.root))
end
helper_method :hints
def toggle_box
@toggle_box ||= Kss::Parser.new(File.expand_path('app/assets/stylesheets', Rails.root))
end
helper_method :toggle_box
end
end
I mounted the engine within my application, and kss.root_path
as well as kss.styleguide_path
work fine. None of the other paths are available.
rake routes outputs:
Routes for Kss::Engine:
text GET /text(.:format) kss/home#text
buttons GET /buttons(.:format) kss/home#buttons
modal GET /modal(.:format) kss/home#modal
forms GET /forms(.:format) kss/home#forms
hints GET /hints(.:format) kss/home#hints
toggle_box GET /toggle-box(.:format) kss/home#toggle_box
root / kss/home#index
I'm trying to add a description to a block, doing the following -
// Standard button
//
// :hover - Subtle hover highlight.
// :focus - Same highlight.
// :active - Invert of hover/focus highlight
// .blue - Blue color scheme
//
// SOME DESCRIPTION HERE
// Styleguide 1.1
I have the following my view
<%= styleguide_block '1.1' do -%>
<a class="btn $modifier_class">Example Button</a>
<% end -%>
The description text - "SOME DESCRIPTION HERE" is not showing in the style guide. Should it? If so, how do I get it to appear?
Thanks.
I am using Rails 3.2.9 and there I receive the following error:
invalid byte sequence in UTF-8
Extracted source (around line #1):
1: <%= styleguide_block '1.1' do -%>
2: <button class="$modifier_class">Example Button</button>
3: <% end -%>
4: <p>This block above was created with a simple template call:</p>
The full trace is:
kss (0.4.0) lib/kss/comment_parser.rb:15:in `single_line_comment?'
kss (0.4.0) lib/kss/comment_parser.rb:95:in `block (2 levels) in parse_blocks'
kss (0.4.0) lib/kss/comment_parser.rb:93:in `each_line'
kss (0.4.0) lib/kss/comment_parser.rb:93:in `block in parse_blocks'
kss (0.4.0) lib/kss/comment_parser.rb:88:in `open'
kss (0.4.0) lib/kss/comment_parser.rb:88:in `parse_blocks'
kss (0.4.0) lib/kss/comment_parser.rb:80:in `blocks'
kss (0.4.0) lib/kss/parser.rb:20:in `block (2 levels) in initialize'
kss (0.4.0) lib/kss/parser.rb:18:in `each'
kss (0.4.0) lib/kss/parser.rb:18:in `block in initialize'
kss (0.4.0) lib/kss/parser.rb:17:in `each'
kss (0.4.0) lib/kss/parser.rb:17:in `initialize'
kss-rails (1.0.1) app/controllers/kss/application_controller.rb:8:in `new'
kss-rails (1.0.1) app/controllers/kss/application_controller.rb:8:in `styleguide'
actionpack (3.2.9) lib/abstract_controller/helpers.rb:53:in `styleguide'
kss-rails (1.0.1) app/helpers/kss/application_helper.rb:9:in `styleguide_block'
app/views/kss/home/styleguide.html.erb:1:in `_app_views_kss_home_styleguide_html_erb__1917730938068446350_70267894947960'
actionpack (3.2.9) lib/action_view/template.rb:145:in `block in render'
activesupport (3.2.9) lib/active_support/notifications.rb:125:in `instrument'
actionpack (3.2.9) lib/action_view/template.rb:143:in `render'
actionpack (3.2.9) lib/action_view/renderer/template_renderer.rb:47:in `block (2 levels) in render_template'
actionpack (3.2.9) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
activesupport (3.2.9) lib/active_support/notifications.rb:123:in `block in instrument'
activesupport (3.2.9) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (3.2.9) lib/active_support/notifications.rb:123:in `instrument'
actionpack (3.2.9) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
actionpack (3.2.9) lib/action_view/renderer/template_renderer.rb:46:in `block in render_template'
actionpack (3.2.9) lib/action_view/renderer/template_renderer.rb:54:in `render_with_layout'
actionpack (3.2.9) lib/action_view/renderer/template_renderer.rb:45:in `render_template'
actionpack (3.2.9) lib/action_view/renderer/template_renderer.rb:18:in `render'
actionpack (3.2.9) lib/action_view/renderer/renderer.rb:36:in `render_template'
actionpack (3.2.9) lib/action_view/renderer/renderer.rb:17:in `render'
actionpack (3.2.9) lib/abstract_controller/rendering.rb:110:in `_render_template'
actionpack (3.2.9) lib/action_controller/metal/streaming.rb:225:in `_render_template'
actionpack (3.2.9) lib/abstract_controller/rendering.rb:103:in `render_to_body'
actionpack (3.2.9) lib/action_controller/metal/renderers.rb:28:in `render_to_body'
actionpack (3.2.9) lib/action_controller/metal/compatibility.rb:50:in `render_to_body'
actionpack (3.2.9) lib/abstract_controller/rendering.rb:88:in `render'
actionpack (3.2.9) lib/action_controller/metal/rendering.rb:16:in `render'
actionpack (3.2.9) lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
activesupport (3.2.9) lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
/Users/haha/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
activesupport (3.2.9) lib/active_support/core_ext/benchmark.rb:5:in `ms'
actionpack (3.2.9) lib/action_controller/metal/instrumentation.rb:40:in `block in render'
actionpack (3.2.9) lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime'
activerecord (3.2.9) lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'
actionpack (3.2.9) lib/action_controller/metal/instrumentation.rb:39:in `render'
/Users/haha/.rvm/gems/ruby-1.9.3-p327@finance_manager/bundler/gems/princely-6f0bdd86970b/lib/princely/pdf_helper.rb:19:in `render_with_princely'
actionpack (3.2.9) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
actionpack (3.2.9) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.2.9) lib/abstract_controller/base.rb:167:in `process_action'
actionpack (3.2.9) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (3.2.9) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (3.2.9) lib/active_support/callbacks.rb:513:in `_run__502553824439203326__process_action__3080493403184950588__callbacks'
activesupport (3.2.9) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.9) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
activesupport (3.2.9) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.2.9) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (3.2.9) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (3.2.9) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
activesupport (3.2.9) lib/active_support/notifications.rb:123:in `block in instrument'
activesupport (3.2.9) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (3.2.9) lib/active_support/notifications.rb:123:in `instrument'
actionpack (3.2.9) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
actionpack (3.2.9) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
activerecord (3.2.9) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (3.2.9) lib/abstract_controller/base.rb:121:in `process'
actionpack (3.2.9) lib/abstract_controller/rendering.rb:45:in `process'
actionpack (3.2.9) lib/action_controller/metal.rb:203:in `dispatch'
actionpack (3.2.9) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
actionpack (3.2.9) lib/action_controller/metal.rb:246:in `block in action'
actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:73:in `call'
actionpack (3.2.9) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
actionpack (3.2.9) 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.9) lib/action_dispatch/routing/route_set.rb:601:in `call'
railties (3.2.9) lib/rails/engine.rb:479:in `call'
railties (3.2.9) lib/rails/railtie/configurable.rb:30:in `method_missing'
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.9) lib/action_dispatch/routing/route_set.rb:601:in `call'
exception_notification (2.6.1) lib/exception_notifier.rb:34:in `call'
sass (3.1.15) lib/sass/plugin/rack.rb:54:in `call'
actionpack (3.2.9) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
rack (1.4.1) lib/rack/etag.rb:23:in `call'
rack (1.4.1) lib/rack/conditionalget.rb:25:in `call'
actionpack (3.2.9) lib/action_dispatch/middleware/head.rb:14:in `call'
actionpack (3.2.9) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
actionpack (3.2.9) lib/action_dispatch/middleware/flash.rb:242:in `call'
rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context'
rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call'
actionpack (3.2.9) lib/action_dispatch/middleware/cookies.rb:341:in `call'
activerecord (3.2.9) lib/active_record/query_cache.rb:64:in `call'
activerecord (3.2.9) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
actionpack (3.2.9) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
activesupport (3.2.9) lib/active_support/callbacks.rb:405:in `_run__790716970336835741__call__4409885498216598636__callbacks'
activesupport (3.2.9) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.9) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
activesupport (3.2.9) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.2.9) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (3.2.9) lib/action_dispatch/middleware/reloader.rb:65:in `call'
actionpack (3.2.9) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
actionpack (3.2.9) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
actionpack (3.2.9) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
railties (3.2.9) lib/rails/rack/logger.rb:32:in `call_app'
railties (3.2.9) lib/rails/rack/logger.rb:16:in `block in call'
activesupport (3.2.9) lib/active_support/tagged_logging.rb:22:in `tagged'
railties (3.2.9) lib/rails/rack/logger.rb:16:in `call'
quiet_assets (1.0.0) lib/quiet_assets.rb:20:in `call_with_quiet_assets'
actionpack (3.2.9) lib/action_dispatch/middleware/request_id.rb:22:in `call'
rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
rack (1.4.1) lib/rack/runtime.rb:17:in `call'
activesupport (3.2.9) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.4.1) lib/rack/lock.rb:15:in `call'
actionpack (3.2.9) lib/action_dispatch/middleware/static.rb:62:in `call'
railties (3.2.9) lib/rails/engine.rb:479:in `call'
railties (3.2.9) lib/rails/application.rb:223:in `call'
rack (1.4.1) lib/rack/content_length.rb:14:in `call'
railties (3.2.9) lib/rails/rack/log_tailer.rb:17:in `call'
thin (1.4.1) lib/thin/connection.rb:80:in `block in pre_process'
thin (1.4.1) lib/thin/connection.rb:78:in `catch'
thin (1.4.1) lib/thin/connection.rb:78:in `pre_process'
thin (1.4.1) lib/thin/connection.rb:53:in `process'
thin (1.4.1) lib/thin/connection.rb:38:in `receive_data'
eventmachine (1.0.0) lib/eventmachine.rb:187:in `run_machine'
eventmachine (1.0.0) lib/eventmachine.rb:187:in `run'
thin (1.4.1) lib/thin/backends/base.rb:63:in `start'
thin (1.4.1) lib/thin/server.rb:159:in `start'
rack (1.4.1) lib/rack/handler/thin.rb:13:in `run'
rack (1.4.1) lib/rack/server.rb:265:in `start'
railties (3.2.9) lib/rails/commands/server.rb:70:in `start'
railties (3.2.9) lib/rails/commands.rb:55:in `block in <top (required)>'
railties (3.2.9) lib/rails/commands.rb:50:in `tap'
railties (3.2.9) lib/rails/commands.rb:50:in `<top (required)>'
script/rails:6:in `require'
script/rails:6:in `<main>'
Any idea where the problem could be?
I don't think this qualifies as an issue, but leaving it here in case you want to mention it somewhere @dewski.
Our team was having an issue where the kss layout file would occasionally fail to load, and we would only see a rendered view with no layout. Inspection of our logs found that because Kss::ApplicationController inherits from ::ApplicationController, there was some code running in our application's before_filter methods that was causing the layout to fail to load. We've solved this by having Kss::ApplicationController inherit from ActionController::Base rather than ::ApplicationController.
Hi there,
I'm trying to get this integrated into our project for our front-end guys to play around with. Appreciate all the hard work thats gone into it !
I'm wondering if it's possible to add links to the left hand side submenu to lead to different sections like the way Github does their styleguide without messing around with routes.rb?
I've tried looking around but couldn't really find anything.
Thanks in advance !
Lloyd
For those of us who don't know ruby on rails, the installation process might be a bit vague. When I type:
rails generate kss:install Not working
I get:
sage:
rails new APP_PATH [options]
Options:
-j, [--javascript=JAVASCRIPT] # Preconfigure for selected JavaScript library
# Default: jquery
-J, [--skip-javascript] # Skip JavaScript files
[--edge] # Setup the application with Gemfile pointing to Rails repository
[--dev] # Setup the application with Gemfile pointing to your Rails checkout
-G, [--skip-git] # Skip Git ignores and keeps
-d, [--database=DATABASE] # Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc)
# Default: sqlite3
-b, [--builder=BUILDER] # Path to a application builder (can be a filesystem path or URL)
[--old-style-hash] # Force using old style hash (:foo => 'bar') on Ruby >= 1.9
[--skip-gemfile] # Don't create a Gemfile
-r, [--ruby=PATH] # Path to the Ruby binary of your choice
# Default: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
-O, [--skip-active-record] # Skip Active Record files
[--skip-bundle] # Don't run bundle install
-m, [--template=TEMPLATE] # Path to an application template (can be a filesystem path or URL)
-T, [--skip-test-unit] # Skip Test::Unit files
-S, [--skip-sprockets] # Skip Sprockets files
Runtime options:
-s, [--skip] # Skip files that already exist
-p, [--pretend] # Run but do not make any changes
-f, [--force] # Overwrite files that already exist
-q, [--quiet] # Supress status output
Rails options:
-h, [--help] # Show this help message and quit
-v, [--version] # Show Rails version number and quit
Description:
The 'rails new' command creates a new Rails application with a default
directory structure and configuration at the path you specify.
You can specify extra command-line arguments to be used every time
'rails new' runs in the .railsrc configuration file in your home directory.
Note that the arguments specified in the .railsrc file don't affect the
defaults values shown above in this help message.
Example:
rails new ~/Code/Ruby/weblog
This generates a skeletal Rails installation in ~/Code/Ruby/weblog.
See the README in the newly created application to get going.
At some point, the docs tell me to re-bundle but not sure what that means. I assume it means, run "rails generate kss:install"
An FYI, and not sure if others are seeing this but, kss.coffee in this repo is not generating css for active, focus, hover states on my project. I replaced kss.coffee with the version below from github/kneath repo branch and it works...
bundle exec rake resque:work
rake aborted!
No such file to load -- kss/application_controller
Thoughts?
All I see is the “Example Button”.
I thought the styleguide would be generated from any comments in my .sass files that look like KSS documentation?
(Does it matter that my .sass files are in subfolders within /stylesheets
?)
In the KssStateGenerator, a new stylesheet object gets embedded into the page via "insertRule" for every CSS rule that can have a modifier. This can be a bit dangerous because when combined with a CSS framework (like Foundation), you'll end up with a ton of embedded style tags in your page that define a pseudo class for each state.
At least in the case of IE, there's a limit to how many stylesheets a page can have. Internet Explorer allows a maximum of 31 (why that number, no clue). Any stylesheets that come after the 31st one will be ignored by IE. When I tried using this engine with a CSS framework (Foundation), that script generated over 50 separate styles that had only one selector.
Rather, it might be better to combine all selectors and styles into one style tag. I've modified kss.coffee to do this and it works for my case. It's not completely tested, however.
Take a look: https://gist.github.com/4271023
Getting an..
undefined method `[]' for nil:NilClass
in..
<h3><%= section.section %> <em><%= section.filename %></em></h3>
I've set up kss-rails per instructions spelled out here but on my local machine I sometimes get these:
undefined method
styleguide_block' for #<#Class:0x007fc3d32975b8:0x007fc3d3296208>`
This error didn't occur all the time, usually only after a long interval between a browser refresh. I would usually restart the local server (pow) and the rails app and it would work again.
Now I'm trying to get the styleguide to work on heroku, and I'm getting a 503 error (Connection closed without response) when visiting /styleguide
. My guess is the 2 issues are related but I'm not certain.
Here's the intermittent error I get locally:
stack trace:
app/views/kss/home/index.html.erb:5:in `_app_views_kss_home_index_html_erb___4220899073351897285_70239519024100'
actionpack (4.0.0) lib/action_view/template.rb:143:in `block in render'
activesupport (4.0.0) lib/active_support/notifications.rb:161:in `instrument'
actionpack (4.0.0) lib/action_view/template.rb:141:in `render'
actionpack (4.0.0) lib/action_view/renderer/template_renderer.rb:49:in `block (2 levels) in render_template'
actionpack (4.0.0) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
activesupport (4.0.0) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.0) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.0) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
actionpack (4.0.0) lib/action_view/renderer/template_renderer.rb:48:in `block in render_template'
actionpack (4.0.0) lib/action_view/renderer/template_renderer.rb:56:in `render_with_layout'
actionpack (4.0.0) lib/action_view/renderer/template_renderer.rb:47:in `render_template'
actionpack (4.0.0) lib/action_view/renderer/template_renderer.rb:17:in `render'
actionpack (4.0.0) lib/action_view/renderer/renderer.rb:42:in `render_template'
actionpack (4.0.0) lib/action_view/renderer/renderer.rb:23:in `render'
actionpack (4.0.0) lib/abstract_controller/rendering.rb:127:in `_render_template'
actionpack (4.0.0) lib/action_controller/metal/streaming.rb:219:in `_render_template'
actionpack (4.0.0) lib/abstract_controller/rendering.rb:120:in `render_to_body'
actionpack (4.0.0) lib/action_controller/metal/rendering.rb:33:in `render_to_body'
actionpack (4.0.0) lib/action_controller/metal/renderers.rb:26:in `render_to_body'
actionpack (4.0.0) lib/abstract_controller/rendering.rb:97:in `render'
actionpack (4.0.0) lib/action_controller/metal/rendering.rb:16:in `render'
actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render'
activesupport (4.0.0) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/Users/stefansundin/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/benchmark.rb:296:in `realtime'
activesupport (4.0.0) lib/active_support/core_ext/benchmark.rb:12:in `ms'
actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:41:in `block in render'
actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
activerecord (4.0.0) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:40:in `render'
actionpack (4.0.0) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
actionpack (4.0.0) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
actionpack (4.0.0) lib/abstract_controller/base.rb:189:in `process_action'
actionpack (4.0.0) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (4.0.0) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (4.0.0) lib/active_support/callbacks.rb:393:in `_run__2938693327759677716__process_action__callbacks'
activesupport (4.0.0) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.0) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (4.0.0) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
activesupport (4.0.0) lib/active_support/notifications.rb:159:in `block in instrument'
activesupport (4.0.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.0.0) lib/active_support/notifications.rb:159:in `instrument'
actionpack (4.0.0) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (4.0.0) lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
activerecord (4.0.0) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (4.0.0) lib/abstract_controller/base.rb:136:in `process'
actionpack (4.0.0) lib/abstract_controller/rendering.rb:44:in `process'
actionpack (4.0.0) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.0.0) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.0.0) lib/action_controller/metal.rb:231:in `block in action'
actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:80:in `call'
actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:48:in `call'
actionpack (4.0.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:655:in `call'
railties (4.0.0) lib/rails/engine.rb:511:in `call'
railties (4.0.0) lib/rails/railtie/configurable.rb:30:in `method_missing'
actionpack (4.0.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `each'
actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `call'
actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:655:in `call'
omniauth (1.1.0) lib/omniauth/strategy.rb:177:in `call!'
omniauth (1.1.0) lib/omniauth/strategy.rb:157:in `call'
omniauth (1.1.0) lib/omniauth/builder.rb:48:in `call'
http_accept_language (2.0.0) lib/http_accept_language/middleware.rb:13: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.0.0) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.0.0) lib/action_dispatch/middleware/flash.rb:241: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.0.0) lib/action_dispatch/middleware/cookies.rb:486:in `call'
activerecord (4.0.0) lib/active_record/query_cache.rb:36:in `call'
activerecord (4.0.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
activerecord (4.0.0) lib/active_record/migration.rb:369:in `call'
actionpack (4.0.0) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.0.0) lib/active_support/callbacks.rb:373:in `_run__949714332256560162__call__callbacks'
activesupport (4.0.0) lib/active_support/callbacks.rb:80:in `run_callbacks'
actionpack (4.0.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.0.0) lib/action_dispatch/middleware/reloader.rb:64:in `call'
actionpack (4.0.0) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
actionpack (4.0.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
actionpack (4.0.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.0.0) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.0.0) lib/rails/rack/logger.rb:21:in `block in call'
activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `block in tagged'
activesupport (4.0.0) lib/active_support/tagged_logging.rb:25:in `tagged'
activesupport (4.0.0) lib/active_support/tagged_logging.rb:67:in `tagged'
railties (4.0.0) lib/rails/rack/logger.rb:21:in `call'
config/initializers/quiet_assets.rb:11:in `call_with_quiet_assets'
actionpack (4.0.0) 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.0.0) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.0.0) lib/action_dispatch/middleware/static.rb:64:in `call'
railties (4.0.0) lib/rails/engine.rb:511:in `call'
railties (4.0.0) lib/rails/application.rb:97:in `call'
/Users/stefansundin/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/server.rb:145:in `handle'
/Users/stefansundin/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/server.rb:99:in `rescue in block (2 levels) in start'
/Users/stefansundin/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/server.rb:96:in `block (2 levels) in start'
/Users/stefansundin/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/server.rb:86:in `each'
/Users/stefansundin/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/server.rb:86:in `block in start'
/Users/stefansundin/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/server.rb:66:in `loop'
/Users/stefansundin/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/server.rb:66:in `start'
/Users/stefansundin/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/server.rb:13:in `run'
/Users/stefansundin/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/bin/nack_worker:4:in `<main>'
heroku error (omitted URL):
sidenote: I think the cache error might be an entirely different issue to do with sass 3.3.0.rc.2. KSS works locally for me with this version of sass.
2014-01-09T01:58:41.399404+00:00 app[web.1]: Started GET "/styleguide" for 76.79.149.70 at 2014-01-09 01:58:41 +0000
2014-01-09T01:58:41.403097+00:00 app[web.1]: Processing by Kss::HomeController#index as HTML
2014-01-09T01:58:41.434202+00:00 app[web.1]: Rendered kss/shared/_styleguide_block.erb (1.3ms)
2014-01-09T01:58:41.434521+00:00 app[web.1]: Rendered kss/shared/_styleguide_block.erb (0.1ms)
2014-01-09T01:58:41.434834+00:00 app[web.1]: Rendered kss/shared/_styleguide_block.erb (0.2ms)
2014-01-09T01:58:41.436397+00:00 app[web.1]: Rendered kss/shared/_styleguide_block.erb (1.4ms)
2014-01-09T01:58:41.437858+00:00 app[web.1]: Rendered kss/shared/_styleguide_block.erb (1.2ms)
2014-01-09T01:58:41.439242+00:00 app[web.1]: Rendered kss/shared/_styleguide_block.erb (1.2ms)
2014-01-09T01:58:41.439793+00:00 app[web.1]: Rendered kss/shared/_styleguide_block.erb (0.4ms)
2014-01-09T01:58:41.439881+00:00 app[web.1]: Rendered kss/home/index.html.erb within layouts/kss/application (33.2ms)
2014-01-09T01:58:41.580682+00:00 app[web.1]: Warning. Error encountered while saving cache 208d024c3387f3aaad21f7177290d756a4e172da/color_swatches.scssc: can't dump anonymous class #<Class:0x007f4b441cf7c8>
2014-01-09T01:58:41.580682+00:00 app[web.1]:
2014-01-09T01:58:41.586487+00:00 app[web.1]: Warning. Error encountered while saving cache bb9a85f496dc0a0662c509e77aac0fc26eb7f403/_all.scssc: can't dump anonymous class #<Class:0x007f4b441cf7c8>
2014-01-09T01:58:41.586487+00:00 app[web.1]:
2014-01-09T01:58:43.572097+00:00 app[web.1]: Warning. Error encountered while saving cache bb9a85f496dc0a0662c509e77aac0fc26eb7f403/_colors.scssc: can't dump anonymous class #<Class:0x007f4b441cf7c8>
2014-01-09T01:58:43.572097+00:00 app[web.1]:
2014-01-09T01:58:43.582294+00:00 app[web.1]: Warning. Error encountered while saving cache bb9a85f496dc0a0662c509e77aac0fc26eb7f403/_typography.scssc: can't dump anonymous class #<Class:0x007f4b441cf7c8>
2014-01-09T01:58:43.582294+00:00 app[web.1]:
2014-01-09T01:58:43.592417+00:00 app[web.1]: Warning. Error encountered while saving cache bb9a85f496dc0a0662c509e77aac0fc26eb7f403/_settings.scssc: can't dump anonymous class #<Class:0x007f4b441cf7c8>
2014-01-09T01:58:43.592417+00:00 app[web.1]:
2014-01-09T01:58:43.610116+00:00 app[web.1]: Warning. Error encountered while saving cache bb9a85f496dc0a0662c509e77aac0fc26eb7f403/_mixins.scssc: can't dump anonymous class #<Class:0x007f4b441cf7c8>
2014-01-09T01:58:43.610116+00:00 app[web.1]:
2014-01-09T01:58:43.662146+00:00 app[web.1]: Warning. Error encountered while saving cache 208d024c3387f3aaad21f7177290d756a4e172da/layout.scssc: can't dump anonymous class #<Class:0x007f4b441cf7c8>
2014-01-09T01:58:43.662146+00:00 app[web.1]:
2014-01-09T01:58:43.747593+00:00 app[web.1]: Warning. Error encountered while saving cache bb9a85f496dc0a0662c509e77aac0fc26eb7f403/_all.scssc: can't dump anonymous class #<Class:0x007f4b441cf7c8>
2014-01-09T01:58:43.747593+00:00 app[web.1]:
2014-01-09T01:58:45.737015+00:00 app[web.1]: Warning. Error encountered while saving cache bb9a85f496dc0a0662c509e77aac0fc26eb7f403/_colors.scssc: can't dump anonymous class #<Class:0x007f4b441cf7c8>
2014-01-09T01:58:45.737094+00:00 app[web.1]:
2014-01-09T01:58:45.752451+00:00 app[web.1]: Warning. Error encountered while saving cache bb9a85f496dc0a0662c509e77aac0fc26eb7f403/_typography.scssc: can't dump anonymous class #<Class:0x007f4b441cf7c8>
2014-01-09T01:58:45.752451+00:00 app[web.1]:
2014-01-09T01:58:45.768499+00:00 app[web.1]: Warning. Error encountered while saving cache bb9a85f496dc0a0662c509e77aac0fc26eb7f403/_settings.scssc: can't dump anonymous class #<Class:0x007f4b441cf7c8>
2014-01-09T01:58:45.768499+00:00 app[web.1]:
2014-01-09T01:58:45.785067+00:00 app[web.1]: Warning. Error encountered while saving cache bb9a85f496dc0a0662c509e77aac0fc26eb7f403/_mixins.scssc: can't dump anonymous class #<Class:0x007f4b441cf7c8>
2014-01-09T01:58:45.785067+00:00 app[web.1]:
2014-01-09T01:58:46.155578+00:00 app[web.1]: Warning. Error encountered while saving cache 208d024c3387f3aaad21f7177290d756a4e172da/typography.scssc: can't dump anonymous class #<Class:0x007f4b441cf7c8>
2014-01-09T01:58:46.155578+00:00 app[web.1]:
2014-01-09T01:58:46.160691+00:00 app[web.1]: Warning. Error encountered while saving cache bb9a85f496dc0a0662c509e77aac0fc26eb7f403/_all.scssc: can't dump anonymous class #<Class:0x007f4b441cf7c8>
2014-01-09T01:58:46.160691+00:00 app[web.1]:
2014-01-09T01:58:48.157291+00:00 app[web.1]: Warning. Error encountered while saving cache bb9a85f496dc0a0662c509e77aac0fc26eb7f403/_colors.scssc: can't dump anonymous class #<Class:0x007f4b441cf7c8>
2014-01-09T01:58:48.157291+00:00 app[web.1]:
2014-01-09T01:58:48.166826+00:00 app[web.1]: Warning. Error encountered while saving cache bb9a85f496dc0a0662c509e77aac0fc26eb7f403/_typography.scssc: can't dump anonymous class #<Class:0x007f4b441cf7c8>
2014-01-09T01:58:48.166826+00:00 app[web.1]:
2014-01-09T01:58:48.177115+00:00 app[web.1]: Warning. Error encountered while saving cache bb9a85f496dc0a0662c509e77aac0fc26eb7f403/_settings.scssc: can't dump anonymous class #<Class:0x007f4b441cf7c8>
2014-01-09T01:58:48.177115+00:00 app[web.1]:
2014-01-09T01:58:48.187237+00:00 app[web.1]: Warning. Error encountered while saving cache bb9a85f496dc0a0662c509e77aac0fc26eb7f403/_mixins.scssc: can't dump anonymous class #<Class:0x007f4b441cf7c8>
2014-01-09T01:58:48.187237+00:00 app[web.1]:
2014-01-09T01:58:57.454779+00:00 app[web.1]: E, [2014-01-09T01:58:57.454527 #2] ERROR -- : worker=1 PID:20 timeout (16s > 15s), killing
2014-01-09T01:58:57.486940+00:00 app[web.1]: E, [2014-01-09T01:58:57.486731 #2] ERROR -- : reaped #<Process::Status: pid 20 SIGKILL (signal 9)> worker=1
2014-01-09T01:58:57.527329+00:00 app[web.1]: I, [2014-01-09T01:58:57.526892 #26] INFO -- : worker=1 ready
2014-01-09T01:58:57.503162+00:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=GET path=/styleguide host=blerp.com fwd="76.79.149.70" dyno=web.1 connect=2ms service=16087ms status=503 bytes=0
2014-01-09T02:06:09.089421+00:00 app[web.1]: Started GET "/" for 54.211.164.11 at 2014-01-09 02:06:09 +0000
2014-01-09T02:06:09.091931+00:00 app[web.1]: Processing by WelcomeController#index as HTML
2014-01-09T02:06:09.107444+00:00 app[web.1]: Redirected to http://blerp.com
2014-01-09T02:06:09.108476+00:00 app[web.1]: Filter chain halted as :login_required rendered or redirected
2014-01-09T02:06:09.108674+00:00 app[web.1]: Completed 302 Found in 17ms (ActiveRecord: 0.0ms)
2014-01-09T02:06:09.112484+00:00 heroku[router]: at=info method=GET path=/ host=blerp.com fwd="54.211.164.11" dyno=web.1 connect=1ms service=24ms status=302 bytes=191
2014-01-09T02:06:09.138307+00:00 app[web.1]: Started GET "https://blerp.com/" for 54.211.164.11 at 2014-01-09 02:06:09 +0000
2014-01-09T02:06:09.223289+00:00 app[web.1]: I, [2014-01-09T02:06:09.222927 #23] INFO -- omniauth: (blerp) Request phase initiated.
2014-01-09T02:06:09.249866+00:00 heroku[router]: at=info method=GET path=https://blerp.com/ host=blerp.com fwd="54.211.164.11" dyno=web.1 connect=2ms service=120ms status=302 bytes=284
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.