Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Rails 3.1 support #34

Open
wants to merge 1 commit into from

1 participant

Dmitri Smirnov
Dmitri Smirnov

I just changed paths. Something still might be not clear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 23, 2011
  1. Rails 3.1 compatibily.

    dknight authored
This page is out of date. Refresh to see the latest.
2  lib/generators/web_app_theme/theme/templates/layout_admin.html.erb
View
@@ -3,7 +3,7 @@
<head>
<title><%= options.app_name %></title>
<%%= stylesheet_link_tag "web-app-theme/base", "web-app-theme/themes/<%= options.theme %>/style", "web-app-theme/override", :cache => true %>
- <%%= javascript_include_tag :defaults, :cache => true %>
+ <%%= javascript_include_tag :application %>
<%%= csrf_meta_tag %>
</head>
<body>
1  lib/generators/web_app_theme/theme/templates/layout_sign.html.erb
View
@@ -3,6 +3,7 @@
<head>
<title><%= options.app_name %></title>
<%%= stylesheet_link_tag "web-app-theme/base", "web-app-theme/themes/<%= options.theme %>/style", "web-app-theme/override", :cache => true %>
+ <%%= javascript_include_tag :application %>
<%%= csrf_meta_tag %>
</head>
<body>
8 lib/generators/web_app_theme/theme/theme_generator.rb
View
@@ -22,16 +22,16 @@ def copy_layout
end
def copy_base_stylesheets
- copy_file "#{stylesheets_path}/base.css", "public/stylesheets/web-app-theme/base.css"
- copy_file "#{stylesheets_path}/override.css", "public/stylesheets/web-app-theme/override.css"
+ copy_file "#{stylesheets_path}/base.css", "app/assets/stylesheets/web-app-theme/base.css"
+ copy_file "#{stylesheets_path}/override.css", "app/assets/stylesheets/web-app-theme/override.css"
end
def copy_theme_stylesheets
- directory "#{stylesheets_path}/themes/#{options.theme}", "public/stylesheets/web-app-theme/themes/#{options.theme}"
+ directory "#{stylesheets_path}/themes/#{options.theme}", "app/assets/stylesheets/web-app-theme/themes/#{options.theme}"
end
def copy_images
- directory "#{images_path}", "public/images/web-app-theme"
+ directory "#{images_path}", "app/assets/images/web-app-theme"
end
protected
Something went wrong with that request. Please try again.