small medium large xlarge

11 Nov 2011, 16:35
Steven Finnegan (19 posts)

After much flailing around trying to get some workable version of mysql installed on the mac (with lion), I finally made it to the point where “rake db:setup RAILS_ENV=’production’” successfully updated the database with migrations and seed data. This section of the book ends with “At this point, you are up and running.” – well, not quite. When I pull up the site on the browser, I get the message below.

When doing a regular checkout (using git to a remote server), there is a precompile step that is missed in this sequence of events. How to I get the assets precompiled?

Sprockets::Helpers::RailsHelper::AssetPaths::AssetNotPrecompiledError in Store#index

Showing /Users/sjf/RailsProjects/depot/app/views/store/index.html.erb where line #11 raised:

cs.jpg isn't precompiled
Extracted source (around line #11):

9: <% @products.each do |product| %>
10:   <div class="entry">
11:     <%= image_tag(product.image_url) %>
12:     <h3><%= product.title %></h3>
13:     <%= sanitize(product.description) %>
14:     <div class="price_line">
11 Nov 2011, 20:09
Steven Finnegan (19 posts)

Answer my own question…

“bundle exec rake assets:precompile”

You must be logged in to comment