GithubHelp home page GithubHelp logo

acts_as_menu's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.