mouse-lin / acts_as_menu Goto Github PK
View Code? Open in Web Editor NEW动态生成导航菜单
License: MIT License
动态生成导航菜单
License: MIT License
ActsAsMenu ========== Introduction goes here. 适合于 rails >= 3.0.x Ruby = 1.9.x 首先创建你的rails 项目 rails new mytest 获取acts_as_menu rails plugin install git://github.com/mouse-lin/acts_as_menu.git 使用下面命令来创建需要的model 与migration rails generate create_all (注意:rails gengerate create_migrate 与 rails generate create_model 可以分别创建所需要的migration 与model,如果你使用了上面的命令就不必要再使用这命令) (可选)如果你是需要例子来帮助的,可以使用下面的命令来创建所需要的controller 与view rails generate create_example 创建需要的数据库与迁移任务(建表) rake db:create rake db:migrate 使用下面的命令来创建第一次菜单的数据(user the follow command to create f_menu data in environment) rake acts_as_menu:create_datas 登录例子查看动态菜单(acts_as_menu) http://localhost:3000/home_menu Copyright (c) 2011 [name of plugin creator], released under the MIT license
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.