Thanks for the update Mike. El 10/01/14 06:04, Mike escribió: > Folks, > > Please ignore this one - sorry for all the clutter. It seems like it > comes down to two things - the order of items in application.js ... and > raty - this awesome star rating thing didn't play nicely for me: > https://github.com/wbotelhos/raty > > might try this next: > https://github.com/bmc/jquery-raty-rails > > Mike > > On Thursday, January 9, 2014 9:49:24 PM UTC-5, Mike wrote: > > I've been searching Stackoverflow, to countless commits of strange > solutions....and, my datepicker and other JS powered assets aren't > working in production on Heroku. > > Everything will compile, even show up in the source. What's even > more frustrating is my lazy_high_charts work in both so I have no > clue whats going on. I keep switching trues to false and so much more. > > my development.rb looks like this: > > | > XXX::Application.configure do > > > > # Hobo: tell ActiveReload about dryml > > > config.watchable_dirs[File.join(config.root,'app/views')]=['dryml'] > > # Settings specified here will take precedence over those in > config/application.rb > > > > > # In the development environment your application's code is > reloaded on > > # every request. This slows down response time but is perfect > for development > > # since you don't have to restart the web server when you make > code changes. > > config.cache_classes =false > > > > > # Log error messages when you accidentally call methods on nil. > > config.whiny_nils =true > > > > > # Show full error reports and disable caching > > config.consider_all_requests_local =true > > config.action_controller.perform_caching =false > > > > > # Don't care if the mailer can't send > > config.action_mailer.raise_delivery_errors =false > > > > > # Print deprecation notices to the Rails logger > > config.active_support.deprecation =:log > > > > > # Only use best-standards-support built into browsers > > config.action_dispatch.best_standards_support =:builtin > > > > > # Raise exception on mass assignment protection for Active > Record models > > config.active_record.mass_assignment_sanitizer =:strict > > > > > # Log the query plan for queries taking more than this (works > > # with SQLite, MySQL, and PostgreSQL) > > config.active_record.auto_explain_threshold_in_seconds =0.5 > > > > > # Do not compress assets > > config.assets.compress =false > > > > > # Expands the lines which load the assets > > config.assets.debug =true > > > > > config.serve_static_assets =false > > end > | > > > > my production.rb looks like this: > | > XXX::Application.configure do > > > > # Settings specified here will take precedence over those in > config/application.rb > > > > > # Code is not reloaded between requests > > config.cache_classes =true > > > > > # Full error reports are disabled and caching is turned on > > config.consider_all_requests_local =false > > config.action_controller.perform_caching =true > > > > > # Disable Rails's static asset server (Apache or nginx will > already do this) > > config.serve_static_assets =true > > > > > # Compress JavaScripts and CSS > > config.assets.compress =true > > > > > # Don't fallback to assets pipeline if a precompiled asset is missed > > config.assets.compile =false > > > > > # Generate digests for assets URLs > > config.assets.digest =true > > > > > # Defaults to nil and saved in location specified by > config.assets.prefix > > # config.assets.manifest = YOUR_PATH > > > > > # Specifies the header that your server uses for sending files > > # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for > apache > > # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # > for nginx > > > > > # Force all access to the app over SSL, use > Strict-Transport-Security, and use secure cookies. > > # config.force_ssl = true > > > > > # See everything in the log (default is :info) > > # config.log_level = :debug > > > > > # Prepend all log lines with the following tags > > # config.log_tags = [ :subdomain, :uuid ] > > > > > # Use a different logger for distributed setups > > # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new) > > > > > # Use a different cache store in production > > # config.cache_store = :mem_cache_store > > > > > # Enable serving of images, stylesheets, and JavaScripts from an > asset server > > # config.action_controller.asset_host = "http://assets.example.com" > > > > > # Precompile additional assets (application.js, application.css, > and all non-JS/CSS are already added) > > # config.assets.precompile += %w( search.js ) > > > > > # Disable delivery errors, bad email addresses will be ignored > > # config.action_mailer.raise_delivery_errors = false > > > > > # Enable threaded mode > > # config.threadsafe! > > > > > # Enable locale fallbacks for I18n (makes lookups for any locale > fall back to > > # the I18n.default_locale when a translation can not be found) > > config.i18n.fallbacks =true > > > > > # Send deprecation notices to registered listeners > > config.active_support.deprecation =:notify > > > > > # Log the query plan for queries taking more than this (works > > # with SQLite, MySQL, and PostgreSQL) > > # config.active_record.auto_explain_threshold_in_seconds = 0.5 > end > | > > > > > my gem file looks like this: > > | > > > > > > > > > source 'https://rubygems.org' > > > ruby '2.0.0' > > > > > gem 'rails','3.2.16' > > > > > # Bundle edge Rails instead: > > > # gem 'rails', :git => 'git://github.com/rails/rails.git > <http://github.com/rails/rails.git>' > > > > > gem 'pg' > > > gem 'thin' > > > > > # Gems used only for assets and not required > > > # in production environments by default. > > > group:assets do > > > gem 'sass-rails', '~> 3.2.3' > > > gem 'coffee-rails','~> 3.2.1' > > > > > # See https://github.com/sstephenson/execjs#readme > <https://github.com/sstephenson/execjs#readme> for more > supported runtimes > > > # gem 'therubyracer', :platforms => :ruby > > > > > gem 'uglifier','>= 1.0.3' > > > end > > > > > gem 'jquery-rails' > > > > > # To use ActiveModel has_secure_password > > > # gem 'bcrypt-ruby', '~> 3.0.0' > > > > > # To use Jbuilder templates for JSON > > > # gem 'jbuilder' > > > > > # Use unicorn as the app server > > > # gem 'unicorn' > > > > > # Deploy with Capistrano > > > # gem 'capistrano' > > > > > # To use debugger > > > # gem 'debugger' > > > > > gem "hobo","= 2.0.1" > > > # Hobo has a lot of assets. Stop cluttering the log in > development mode. > > > gem "quiet_assets",:group=>:development > > > # Hobo's version of will_paginate is required. > > > gem "will_paginate",:git > =>"git://github.com/Hobo/will_paginate.git > <http://github.com/Hobo/will_paginate.git>" > > > gem "hobo_bootstrap","2.0.1" > > > gem "hobo_jquery_ui","2.0.1" > > > gem "hobo_bootstrap_ui","2.0.1" > > > gem "jquery-ui-themes","~> 0.0.4" > > > gem "hobo_clean_admin","2.0.1" > > > gem "comma","~> 3.1.0" > > > gem "gravtastic" > > > gem 'lazy_high_charts' > > > gem 'rails_12factor' > > | > > > and, my application.js looks like this: > | > > > > > > > > > // This file is included in all sites and subsites. This is a > > > // manifest file that'll be compiled into including all the files > > > // listed below. Add new JavaScript/Coffee code in separate files in > > > // the application directory and they'll automatically be included. > > > // It's not advisable to add code directly here, but if you do, it'll > > > // appear at the bottom of the the compiled file. > > > // > > > //= require jquery > > > //= require jquery_ujs > > > //= require jquery-ui > > > //= require highcharts/highcharts > > > > //= require highcharts/highcharts-more > > > > //= require highcharts/highstock > > > //= require application/jquery.raty.min.js > > > //= require_tree ./application > > | > > > So very confused. > > > -- > You received this message because you are subscribed to the Google > Groups "Hobo Users" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/hobousers. > For more options, visit https://groups.google.com/groups/opt_out.
-- Ignacio Huerta Arteche http://www.ihuerta.net Teléfono: 0034 645 70 77 35 Email realizado con software libre -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/hobousers. For more options, visit https://groups.google.com/groups/opt_out.
