Rails 3.1 support #34

Open
wants to merge 1 commit into
from
@@ -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>
@@ -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>
@@ -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