SitePoint Sponsor

User Tag List

Results 1 to 17 of 17
  1. #1
    SitePoint Member
    Join Date
    Sep 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Error after attempting to use bootstrap

    I get to pg 50 in the jsrails1 book before my application starts giving me errors.

    Screen Shot 2014-01-03 at 6.12.10 PM.png

    I went back undoing everything until I reached the first error, and it begins right after importing bootstrap to the custom.css.scss file.

    After deleting the pages.html.erb I get this error:

    Sass::SyntaxError in Pages#index
    Showing /Users/..../Documents/rails_projects/training/app/views/layouts/application.html.erb where line #5 raised:
    File to import not found or unreadable: bootstrap-responsive.

    What is causing this problem?

  2. #2
    SitePoint Member
    Join Date
    Sep 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How are you supposed to contact someone when the code in the book doesn't work? The contact page gives a 500 error. Maybe I can get my money back...

  3. #3
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,260
    Mentioned
    196 Post(s)
    Tagged
    2 Thread(s)
    Hi actionman, welcome to the forums

    I didn't see a contact link for Jump Start Rails, did you try ?
    books@sitepoint.com

    Our email address, should you need to contact us for support, to report a problem, or for any other reason.
    It may be that someone knows the answer to your problem, and the Ruby Rails forum would be a better place for this thread.
    But for now (it can be moved back later) I'll move it to Forum Support until the 500 error issue gets resolved, so @HAWK ; can look into it

  4. #4
    Keeper of the SFL StarLion's Avatar
    Join Date
    Feb 2006
    Location
    Atlanta, GA, USA
    Posts
    3,748
    Mentioned
    73 Post(s)
    Tagged
    0 Thread(s)
    Does said file actually exist? Your error message seems to indicate it does not.
    Never grow up. The instant you do, you lose all ability to imagine great things, for fear of reality crashing in.

  5. #5
    Galactic Overlord gold trophysilver trophybronze trophy
    HAWK's Avatar
    Join Date
    Aug 2003
    Location
    New Zealand
    Posts
    12,588
    Mentioned
    982 Post(s)
    Tagged
    14 Thread(s)
    Quote Originally Posted by actionman View Post
    How are you supposed to contact someone when the code in the book doesn't work? The contact page gives a 500 error. Maybe I can get my money back...
    Hey there, that's frustrating! Which page is giving you an error?

  6. #6
    SitePoint Member
    Join Date
    Sep 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by HAWK View Post
    Hey there, that's frustrating! Which page is giving you an error?
    localhost:3000/about and localhost:3000/

  7. #7
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,260
    Mentioned
    196 Post(s)
    Tagged
    2 Thread(s)
    That's not a broken SitePoint contact URL
    I'll move this thread back to the Ruby & Rails forum now.

  8. #8
    SitePoint Member
    Join Date
    Sep 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I just want to add that the error occurs after I put the following into pages.html.erb:

    Code:
    <!DOCTYPE html>
    <html>
    <head>
    <meta name="viewport" content="width=device-width, ➥initial-scale=1.0">
    <%= stylesheet_link_tag "application", :media => "all", ➥"data-turbolinks-track" => true%>
    <%= javascript_include_tag "application", ➥"data-turbolinks-track" => true %>
        <%= csrf_meta_tags %>
    </head>
    <body>
      <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="navbar-inner">
          <div class="container-fluid">
             <a class="brand">Jump Start Rails</a>
          </div>
         </div>
      </div>
      <div class="container-fluid">
        <div class="row-fluid">
          <div class="span3">
            <ul class="nav nav-list">
              <li class="nav-header">Sidebar</li>
              <li class="active"><a href="#">Link</a></li>
              <li class="nav-header">Sidebar</li>
              <li><a href="#">Link</a></li>
              <li><a href="#">Link</a></li>
              <li class="nav-header">Sidebar</li>
              <li><a href="#">Link</a></li>
    </ul> </div>
          <div class="span9">
            <%= yield %>
          </div>
        </div>
    <hr/>
        <footer></footer>
      </div>
    </body>
    </html>

  9. #9
    SitePoint Member
    Join Date
    Sep 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It also appears that http://twitter.github.com/bootstrap/examples/fluid.html, which is a link given in the book, is now broken

  10. #10
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,260
    Mentioned
    196 Post(s)
    Tagged
    2 Thread(s)
    I'm lost, but hopefully these links I found may be of some help to someone

    Bootstrap from Twitter Aug 2011 https://dev.twitter.com/blog/bootstrap-twitter

    Turbolinks Nov 2012 http://railscasts.com/episodes/390-turbolinks
    -- RailsCasts http://railscasts.com/episodes/390-t...?autoplay=true

    GitHub rails / turbolinks Issues with bootstrap plugins https://github.com/rails/turbolinks/issues/78

    Jump Start Rails Aug 2013 https://learnable.com/books/jsrails1
    -- code archive https://github.com/spbooks/JSRAILS1

    twbs / bootstrap-sass Turbolinks compatibility https://github.com/twbs/bootstrap-sass/issues/396

    GitHub Bootstrap https://github.com/twbs/bootstrap

    GitHub twitter / scala-bootstrapper https://github.com/twitter/scala-bootstrapper

  11. #11
    padawan silver trophybronze trophy markbrown4's Avatar
    Join Date
    Jul 2006
    Location
    Victoria, Australia
    Posts
    4,117
    Mentioned
    28 Post(s)
    Tagged
    2 Thread(s)
    Hi actionman,

    The error message is pretty specific. "File to import not found or unreadable: bootstrap-responsive."
    This is a Sass compilation error in custom.css.scss where you have something like @import "bootstrap-responsive" - It means Sass can't find the path to that file.

    You will either have to download the bootstrap files and put them into your stylesheets directory or use a gem which will import the stylesheets for you like
    https://github.com/twbs/bootstrap-sass

  12. #12
    SitePoint Member
    Join Date
    Sep 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I do have the bootstrap-sass gem in my Gemfile.

  13. #13
    SitePoint Member
    Join Date
    Sep 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here is the log file:

    Code:
    Started GET "/about" for 127.0.0.1 at 2014-01-05 13:11:16 -0600
    Processing by PagesController#about as HTML
      Rendered pages/about.html.erb within layouts/pages (0.8ms)
    ERROR: compiling _app_views_layouts_pages_html_erb___4579028913591195595_70284618351840 RAISED /Users/mbowen/Documents/rails_projects/training/app/views/layouts/pages.html.erb:5: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '('
    ...ication", :media => "all", ➥"data-turbolinks-track" => tru...
    ...                               ^
    /Users/mbowen/Documents/rails_projects/training/app/views/layouts/pages.html.erb:5: syntax error, unexpected =>, expecting ')'
    ..., ➥"data-turbolinks-track" => true);@output_buffer.safe_ap...
    ...                               ^
    /Users/mbowen/Documents/rails_projects/training/app/views/layouts/pages.html.erb:6: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '('
    ...include_tag "application", ➥"data-turbolinks-track" => tru...
    ...                               ^
    /Users/mbowen/Documents/rails_projects/training/app/views/layouts/pages.html.erb:6: syntax error, unexpected =>, expecting ')'
    ..., ➥"data-turbolinks-track" => true );@output_buffer.safe_a...
    ...                               ^
    Function body:           def _app_views_layouts_pages_html_erb___4579028913591195595_70284618351840(local_assigns, output_buffer)
                _old_virtual_path, @virtual_path = @virtual_path, "layouts/pages";_old_output_buffer = @output_buffer;;@output_buffer = output_buffer || ActionView::OutputBuffer.new;@output_buffer.safe_append='<!DOCTYPE html>
    <html>
    <head>
    <meta name="viewport" content="width=device-width, ➥initial-scale=1.0">
    ';@output_buffer.append=( stylesheet_link_tag "application", :media => "all", ➥"data-turbolinks-track" => true);@output_buffer.safe_append='
    ';@output_buffer.append=( javascript_include_tag "application", ➥"data-turbolinks-track" => true );@output_buffer.safe_append='
        ';@output_buffer.append=( csrf_meta_tags );@output_buffer.safe_append='
    </head>
    <body>
      <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="navbar-inner">
          <div class="container-fluid">
             <a class="brand">Jump Start Rails</a>
          </div>
         </div>
      </div>
      <div class="container-fluid">
        <div class="row-fluid">
          <div class="span3">
            <ul class="nav nav-list">
              <li class="nav-header">Sidebar</li>
              <li class="active"><a href="#">Link</a></li>
              <li class="nav-header">Sidebar</li>
              <li><a href="#">Link</a></li>
              <li><a href="#">Link</a></li>
              <li class="nav-header">Sidebar</li>
              <li><a href="#">Link</a></li>
    </ul> </div>
          <div class="span9">
            ';@output_buffer.append=( yield );@output_buffer.safe_append='
          </div>
        </div>
    <hr/>
        <footer></footer>
      </div>
    </body>
    </html>
    ';@output_buffer.to_s
              ensure
                @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer
              end
    
    Backtrace: /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_view/template.rb:299:in `module_eval'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_view/template.rb:299:in `compile'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_view/template.rb:248:in `block in compile!'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_view/template.rb:236:in `synchronize'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_view/template.rb:236:in `compile!'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_view/template.rb:142:in `block in render'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/activesupport-4.0.2/lib/active_support/notifications.rb:161:in `instrument'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_view/template.rb:141:in `render'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_view/renderer/template_renderer.rb:47:in `render_template'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_view/renderer/template_renderer.rb:17:in `render'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_view/renderer/renderer.rb:42:in `render_template'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_view/renderer/renderer.rb:23:in `render'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/abstract_controller/rendering.rb:127:in `_render_template'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_controller/metal/streaming.rb:219:in `_render_template'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/abstract_controller/rendering.rb:120:in `render_to_body'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_controller/metal/rendering.rb:33:in `render_to_body'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_controller/metal/renderers.rb:26:in `render_to_body'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/abstract_controller/rendering.rb:97:in `render'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_controller/metal/rendering.rb:16:in `render'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/activesupport-4.0.2/lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
    /Users/mbowen/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/benchmark.rb:296:in `realtime'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/activesupport-4.0.2/lib/active_support/core_ext/benchmark.rb:12:in `ms'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_controller/metal/instrumentation.rb:41:in `block in render'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/activerecord-4.0.2/lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_controller/metal/instrumentation.rb:40:in `render'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_controller/metal/implicit_render.rb:10:in `default_render'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_controller/metal/implicit_render.rb:5:in `send_action'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/abstract_controller/base.rb:189:in `process_action'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_controller/metal/rendering.rb:10:in `process_action'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/activesupport-4.0.2/lib/active_support/callbacks.rb:403:in `_run__3565954152517788721__process_action__callbacks'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/activesupport-4.0.2/lib/active_support/callbacks.rb:80:in `run_callbacks'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/abstract_controller/callbacks.rb:17:in `process_action'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_controller/metal/rescue.rb:29:in `process_action'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/activesupport-4.0.2/lib/active_support/notifications.rb:159:in `block in instrument'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/activesupport-4.0.2/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/activesupport-4.0.2/lib/active_support/notifications.rb:159:in `instrument'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/activerecord-4.0.2/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/abstract_controller/base.rb:136:in `process'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/abstract_controller/rendering.rb:44:in `process'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_controller/metal.rb:195:in `dispatch'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_controller/metal.rb:231:in `block in action'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_dispatch/routing/route_set.rb:80:in `call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_dispatch/routing/route_set.rb:48:in `call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_dispatch/journey/router.rb:71:in `block in call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_dispatch/journey/router.rb:59:in `each'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_dispatch/journey/router.rb:59:in `call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_dispatch/routing/route_set.rb:680:in `call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/rack-1.5.2/lib/rack/etag.rb:23:in `call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/rack-1.5.2/lib/rack/conditionalget.rb:25:in `call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_dispatch/middleware/flash.rb:241:in `call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:225:in `context'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:220:in `call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_dispatch/middleware/cookies.rb:486:in `call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/activerecord-4.0.2/lib/active_record/query_cache.rb:36:in `call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/activerecord-4.0.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/activerecord-4.0.2/lib/active_record/migration.rb:369:in `call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/activesupport-4.0.2/lib/active_support/callbacks.rb:373:in `_run__3663792765521295763__call__callbacks'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/activesupport-4.0.2/lib/active_support/callbacks.rb:80:in `run_callbacks'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_dispatch/middleware/reloader.rb:64:in `call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/railties-4.0.2/lib/rails/rack/logger.rb:38:in `call_app'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/railties-4.0.2/lib/rails/rack/logger.rb:20:in `block in call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/activesupport-4.0.2/lib/active_support/tagged_logging.rb:67:in `block in tagged'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/activesupport-4.0.2/lib/active_support/tagged_logging.rb:25:in `tagged'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/activesupport-4.0.2/lib/active_support/tagged_logging.rb:67:in `tagged'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/railties-4.0.2/lib/rails/rack/logger.rb:20:in `call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_dispatch/middleware/request_id.rb:21:in `call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/activesupport-4.0.2/lib/active_support/cache/strategy/local_cache.rb:83:in `call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/actionpack-4.0.2/lib/action_dispatch/middleware/static.rb:64:in `call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in `call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/railties-4.0.2/lib/rails/engine.rb:511:in `call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/railties-4.0.2/lib/rails/application.rb:97:in `call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/rack-1.5.2/lib/rack/content_length.rb:14:in `call'
    /Users/mbowen/.rvm/gems/ruby-2.0.0-p247@training/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
    /Users/mbowen/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
    /Users/mbowen/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
    /Users/mbowen/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
    Completed 500 Internal Server Error in 26ms

  14. #14
    padawan silver trophybronze trophy markbrown4's Avatar
    Join Date
    Jul 2006
    Location
    Victoria, Australia
    Posts
    4,117
    Mentioned
    28 Post(s)
    Tagged
    2 Thread(s)
    That's a completely separate error.

    Is your stylesheet exactly like this?
    Code ruby:
    <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>

  15. #15
    SitePoint Member
    Join Date
    Sep 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No it's :media => "all",


    So I went thru the code archive for this book and I just copy pasted everything into page.html.erb, which fixed that but gives me a new error(so I probably had a typo, which you pointed out)

    We are back to:
    File to import not found or unreadable: bootstrap-responsive.

    I made sure that 'bootstrap-sass' appears when I bundle install, and it is. So I'm not sure why it can't find it...

    BTW, thanks for your help so far.

  16. #16
    padawan silver trophybronze trophy markbrown4's Avatar
    Join Date
    Jul 2006
    Location
    Victoria, Australia
    Posts
    4,117
    Mentioned
    28 Post(s)
    Tagged
    2 Thread(s)
    Well I can't see mention of bootstrap-responsive in https://github.com/twbs/bootstrap-sass
    Most likely it was a reference to an outdated version of bootstrap.

  17. #17
    SitePoint Addict
    Join Date
    Feb 2007
    Posts
    270
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Check your Bootstrap version. From the sound of the error, the book you're working from is expecting to use bootstrap v2.x.x and you've installed Bootstrap v3.x.x

    V3 is not backwards compatible with v2, so I think you'll either need to install an older version of the bootstrap-sass gem, or use the information on http://getbootstrap.com/migration/ to rewrite the classes and page structure to be compatible with Bootstrap v3.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •