是否有人能够成功地获得基础应用程序与Rails的工作。我通过基金会网站遵循了说明,但甚至无法获得一个简单的模块来使用Off Canvas菜单
!!!
%html{:lang => "en"}
%head
%meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/
%meta{:charset => "utf-8"}/
%meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"}/
%title= content_for?(:title) ? yield(:title) : "Bean'n'Gone"
= stylesheet_link_tag 'application'
= javascript_include_tag 'application'
%script{:src => "http://cdn.jsdelivr.net/zurb/foundation-apps-1.1.0.js"}
%script{:src => "http://cdn.jsdelivr.net/zurb/foundation-apps-1.1.0.min.js"}
%script{:src => "http://cdn.jsdelivr.net/zurb/foundation-apps-templates-1.1.0.js"}
%script{:src => "http://cdn.jsdelivr.net/zurb/foundation-apps-templates-1.1.0.min.js"}
= csrf_meta_tags
%body
%zf-offcanvas#menu{:position => "left"}
%a.close-button{"zf-close" => ""} ×
%a.button{"zf-open" => "menu"} Open Off-canvas
我不是很熟悉Foundation for Apps,但是对于Angular,你必须在HTML标签中声明你的应用是一个Angular应用。
例如:
<html ng-app="exampleApp">