Asset pipeline support, small theme change required [THEME] [DEPLOY]

It should now be possible to develop themes which take advantage of the
asset pipeline for non-view resources such as stylesheets using SASS/SCSS
or javascript using CoffeeScript (add to :assets group in Gemfile).

[THEME] If you are maintaining a theme or fork of calagator, you will
need to make a small change to your templates, due to incompatibilities
between the asset pipeline and the ':cache => true' attribute.

  1. Change following line in themes/*/views/layouts/application.html.erb:
       <%= javascript_include_tag  :defaults, :cache => true %>
     to look like:
       <%= javascript_include_tag 'application' %>

  2. Remove any additional ':cache => true' attributes used in your
     theme; most likely you won't find any beyond #1 above.

[DEPLOY] Deploying calagator now requires you to precompile assets using:

  $> rake assets:precompile
remove IE{6,7} CSS customizations, we can't test and usage is low
Take advantage of asset pipeline for some core assets [THEME] [DEPLOY]

Removed some core assets (jquery, jquery-ui, formtastic) that are
automatically provided by gems; before the asset pipeline, assets had to be
copied across to the project directory by hand or via *:install rake tasks.

Removed some assets that didn't appear to be used by anything such as
reset-fonts-grids.css, jquery.dimensions.min.js.

[THEME] The 'reset' stylesheet was moved to core, it is unlikely you would
need or want to update this manually.  'common' and 'formtastic' core
stylesheets have been merged into the 'application' stylesheet.

  Change the following lines in themes/*/views/layouts/application.html.erb:
    <%= theme_stylesheet_link_tag 'reset', :media => :all %>
    <%= stylesheet_link_tag 'common', 'formtastic', :media => :all %>
  to look like:
    <%= stylesheet_link_tag 'application', :media => :all %>
Update INSTALL.md so precompile commands are on two lines
Remove more IE6/7 hacks, finally get asset uglification working
Full asset pipeline support for themes, remove themes_for_rails [THEME]

Remove themes_for_rails gem as it's no longer being maintained by its owner,
doesn't utilize the asset pipeline and can be replaced by adding a couple of
paths to the asset pipeline configuration (config/initializers/themes.rb).

[THEME] Views work exactly as before. There is no longer a theme_ prefix for
asset helpers (use stylesheet_link_tag instead of theme_stylesheet_link_tag).
You will also want to rewrite your asset helper methods to take advantage of
the asset pipeline.

  In themes/*/views/layouts/application.html.erb, change:
    <%= theme_stylesheet_link_tag 'typography', 'forms', 'layout', ... %>
  to look like:
    <%= stylesheet_link_tag 'theme', :media => :all %>
  and require your assets from themes/*/stylesheets/theme.css:
    /*
     *= require typography
     *= require theme-forms
     *= require layout
     * ...
    */

Note that, just as with views, theme-specific assets now override any core
application asset with the same name; it's best to avoid names already
being used in app/assets/*/ (i.e. forms.js) unless you want to explicitly
replace their behavior, not just augment it.

You should also ensure any theme-specific javascript and stylesheet assets
referenced by an asset helper method (by your views, not within the asset),
are also defined in your theme/*/settings.yml file (see default theme):

  precompile_assets:
    - 'mobile.css'
    - 'print.css'

You can verify your theme will look correct on production by running:

  $> bundle exec rake clear assets:precompile
  $> RAILS_ENV=preview bundle exec rails s -blocalhost

And walking through your application, keeping an eye for any 404 errors.
Rename .css files to .scss to support asset helpers [THEME]

Stylesheets now support asset helpers such as image-path and image-url.

reset.css was not renamed as it comes from a third party and shouldn't be
be modified directly.

[THEME] If you want to take advantage of asset helpers in your stylesheets
or SCSS templating in general (see http://sass-lang.com/), rename your
theme's .css files to .scss.
Convert image paths to use asset pipeline, not hard-coded [THEME]

Before the asset pipeline, views and stylesheets hard-coded the image path.
Now we can use image_path, image_tag, image-path, image-url helpers to
reference images which automatically appends an asset digest to ensure
the correct/latest version of the image is loaded (production).

[THEME] Image paths are now prefixed with /assets/ instead of /images/.
You should update any hard-coded image paths in your views and assets to
use image asset helpers.

  In your views, change elements like:
    <img src="/images/spinner.gif" alt="Spinner" ...>
  to look like:
    <%= image_tag "spinner.gif", :alt => "Spinner" ... %>

  In your stylesheets, change properties with url(...) from:
    background: url('/images/nav_marker.gif') ...
  to look like:
    background: image-url("nav_marker.gif") ...
Fix typo in view, introduced when switching to asset pipeline
Enable Capistrano asset pipeline support
Merge pull request #44 from dhedlund/asset_pipeline

Asset Pipeline Support (core and themes)