Giter VIP home page Giter VIP logo

writings's Issues

有关用户注册……

看来是我学业不精啊…………翻了3天源代码了愣是没找到有关用户注册的后台代码在哪里……………………求指教………………

关于 500错误

我把app 用nginx跑起来后,hosts域名指向也设置了。但是进入首页的时候显示 Page not Found。
下面是后台打印的信息
ActionView::MissingTemplate (Missing template errors/500 with {:locale=>[:en, :"zh-CN", :zh], :formats=>[:png], :handlers=>[:erb, :builder, :raw, :ruby, :slim, :jbuilder, :coffee]}. Searched in:

  • "/vagrant_code/rails/writings/app/views"
  • "/home/vagrant/.rvm/gems/ruby-2.0.0-p247/gems/kaminari-0.14.1/app/views"
  • "/vagrant_code/rails/writings"
  • "/"
    ):
    app/controllers/application_controller.rb:28:in render_500' app/middleware/conditional_ssl.rb:9:incall'

我的环境是ubuntu 12.04 server 是架在虚拟机上的。
另外nginx设置中 root指向的是public。

跑起来之后,只能通过localhost访问,怎么设置?

在局域网其他机器上访问出错:

Mongoid::Errors::DocumentNotFound in Site::ArticlesController#index
Problem: Document not found for class Space with attributes {:domain=>"192.168.56.1"}. Summary: When calling Space.find_by with a hash of attributes, all attributes provided must match a document in the database or this error will be raised. Resolution: Search for attributes that are in the database or set the Mongoid.raise_not_found_error configuration option to false, which will cause a nil to be returned instead of raising this error.

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.