zoukankan      html  css  js  c++  java
  • RAILS_ADMIN

    D:\work\ra>rails g rails_admin:install
               -  Hello, RailsAdmin installer will help you sets things up!
               -  I need to work with Devise, let's look at a few things first:
               -  Checking for a current installation of devise...
               -  Adding devise gem to your Gemfile:
          append  Gemfile
         gemfile  devise
               -  Looks like you don't have devise installed! We'll install it for you:
        generate  devise:install
          create  config/initializers/devise.rb
          create  config/locales/devise.en.yml
    ===============================================================================

    Some setup you must do manually if you haven't yet:

      1. Ensure you have defined default url options in your environments files. Here
         is an example of default_url_options appropriate for a development environment
         in config/environments/development.rb:

           config.action_mailer.default_url_options = { :host => 'localhost:3000' }

         In production, :host should be set to the actual host of your application.

      2. Ensure you have defined root_url to *something* in your config/routes.rb.
         For example:

           root :to => "home#index"

      3. Ensure you have flash messages in app/views/layouts/application.html.erb.
         For example:

           <p class="notice"><%= notice %></p>
           <p class="alert"><%= alert %></p>

      4. If you are deploying Rails 3.1 on Heroku, you may want to set:

           config.assets.initialize_on_precompile = false

         On config/application.rb forcing your application to not access the DB
         or load models when precompiling your assets.

    ===============================================================================
               ?  What would you like the user model to be called? Press <enter> for [user] >

  • 相关阅读:
    存储过程的语法
    C#之理解接口的作用
    获取gridview模板列里面的控件的ID
    asp.net asp:Repeater嵌套绑定方法(2)
    asp.net asp:Repeater嵌套绑定方法(1)
    listview 绑定hashtable 以及值的显示
    mark
    程序员的路该怎么样继续走下去?
    多条件查询以及分页存储过程(倒叙和顺序查询)
    发生ActionScript 错误:[RPC Fault faultString="发送失败" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed
  • 原文地址:https://www.cnblogs.com/likeyu/p/2427878.html
Copyright © 2011-2022 走看看