Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7192785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:01:05+00:00 2026-05-28T20:01:05+00:00

total noob to rails and am using the Hartl tutorial. Got to chapter 4

  • 0

total noob to rails and am using the Hartl tutorial.

Got to chapter 4 (CSS, 4.1.2), everything seemed dandy, and ran into an issue getting

<!DOCTYPE html>
<html>
  <head>
    <title><%= title %></title>
    <%= csrf_meta_tag %>
    <%= stylesheet_link_tag 'blueprint/screen', :media => 'screen' %>
    <%= stylesheet_link_tag 'blueprint/print',  :media => 'print' %>
  </head>
  <body>
    <%= yield %>
  </body>
</html>

to make the text on the page look ‘prettier’. As Hartl describes it,
‘By the way, with the new stylesheets the site doesn’t look much different than before, but it’s a start’

I do agree it looks cooler and this step is obviously more than necessary to continue.

So, nothing was changing on the localhost:3000/pages/home as it looked in chapter 3.

This is what it SHOULD look like

http://ruby.railstutorial.org/images/figures/home_with_stylesheet.png

(see attached pic^)

So I finally moved the stylesheets folder from public into app/assets/stylesheets, and added

this

<%= stylesheet_link_tag 'application.css' %> 

to the application.html.erb file in app/views/layouts folder
Which I found from this portion of stackoverflow 🙂 very helpful

So I fired up localhost:3000/pages/home and everything looked as it should (in relation to the png pic posted above) but all the text was centered, and it should be on the left side.

And, in addition, I was getting this message, repeated, in the terminal:

Started GET "/assets/stylesheets/src/typography.css?body=1" for 127.0.0.1 at 2012-01-04 17:34:13     -0800
Served asset /stylesheets/src/typography.css - 304 Not Modified (3ms)
[2012-01-04 17:34:13] WARN  Could not determine content-length of response body. Set content-    length of the response or set Response#chunked = true

So a buddy said it had to do with the rails version. We did share screen skype and he said in the home directory it should be 3.1 and in the sample_app directory it should be version 3.0.11 (he’s a bit of a noob too but everything is going smoothly for him)

So alas I am back to getting the damn rails server to work. I’m on Snow Leopard and changed the sqlite3 thing, did bundle update then bundle install and worked fine. Now ‘rails s’ will not work ;/

the error message in the terminal is this:

/Users/davidpardy/rails_projects/sample_app/config/application.rb:8:in `require': no such file     to load -- sprockets/railtie (LoadError)
    from /Users/davidpardy/rails_projects/sample_app/config/application.rb:8:in '<top         (required)>'
    from /Users/davidpardy/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.11/lib/rails    /commands.rb:28:in `require'
    from /Users/davidpardy/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.11/lib/rails/commands.rb:28:in `block in <top (required)>'
    from /Users/davidpardy/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.11/lib/rails/commands.rb:27:in `tap'
    from /Users/davidpardy/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.11/lib/rails/commands.rb:27:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'

So now I’m stuck and really don’t know what to do. Don’t want to start from scratch.

Like I said I’m new to this so any input would be appreciated. This seems like a rather easy fix, just lost.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T20:01:06+00:00Added an answer on May 28, 2026 at 8:01 pm

    im in the same boat as you, i am running rails 3.1.3 and am not in the mood atm to start over for a lower rails (or to figure out how to seamlessly change rails version).

    i decided to remove the blueprint folder and its two including lines in application.html.erb, and make a new inclusion of a custom css file i put directly in app/assets/stylesheets. the css was just to make the background red, and thats what it did. not sure why our pages were being centered like that using the blueprint, but it looks okay now. as mentioned earlier, the safest bet is to just use the same versions as the tutorials, or 3.0.11 for rails as mr. hartl has indicated in a comment.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Total noob to anything lower-level than Java, diving into iPhone audio, and realing from
Total noob question, but here. CSS .product__specfield_8_arrow { /*background-image:url(../../upload/orng_bg_arrow.png); background-repeat:no-repeat;*/ background-color:#fc0; width:50px !important; height:33px
I'm a total noob to iPhone programming, and I've run into an exception being
I am a total noob on this issue, and I wonder if I have
I'm a total noob to CSS. I have a css file both locally and
Total noob question. I am building a simple photoblog in Rails which consists of
Let me preface this by saying I'm a total rails noob. I've just written
I'm a total Ruby/Rails/AR noob. I have a very basic sort of database schema
I'm a total noob to rails and I'm trying to understand a project I'm
Total noob question on DotNetNuke, using it for first time. My client gave me

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.