app/views/layouts/instedd_application.html.erb in instedd-rails-0.0.3 vs app/views/layouts/instedd_application.html.erb in instedd-rails-0.0.4

- old
+ new

@@ -1,14 +1,19 @@ <!DOCTYPE html> <html> <head> <title><%= application_name.titleize %></title> + <% if Rails::version < '3.1' %> + <%= stylesheet_link_tag "/stylesheets/#{application_name.underscore}.css" %> + <%= javascript_include_tag :defaults, "rails.validations" %> + <%= csrf_meta_tag %> + <% else %> + <%= stylesheet_link_tag "application" %> + <%= javascript_include_tag "application" %> + <%= csrf_meta_tags %> + <% end %> <%= stylesheet_link_tag 'http://theme.instedd.org/theme/stylesheets/theme.css' %> - <%= stylesheet_link_tag "/stylesheets/#{application_name.underscore}.css" %> - - <%= javascript_include_tag :defaults, "rails.validations" %> <%= javascript_include_tag 'http://theme.instedd.org/theme/javascripts/theme.js' %> - <%= csrf_meta_tag %> <%= yield(:head) %> <link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon" /> <%= render :partial =>"shared/analytics" %> </head> <body class="<%=(@body_class || []).join(' ')%>">