去官网查,那边写得很详细
想进学校,没点背景很难的
current_page?(),判断当前的 uri
我问过我们学校的同学,他们觉得 ruby 不好找工作,不像 pHP,java
mark 一下
mruby 呢?
招实习生不?
#7 楼 @lb563 日志和终端里的是一样的吧? 终端里报错 Started GET "/votes/new" for 127.0.0.1 at 2012-04-28 12:38:58 +0800 Processing by VotesController#new as HTML Rendered votes/new.html.erb within layouts/application (162.2ms) Completed 500 Internal Server Error in 260ms 日志里写的也是一样的 Started GET "/votes/new" for 127.0.0.1 at 2012-04-28 12:38:58 +0800 Processing by VotesController#new as HTML Rendered votes/new.html.erb within layouts/application (162.2ms) Completed 500 Internal Server Error in 260ms
并且 log 下只有一个文件 development.log,应该环境就是 development 吧
#5 楼 @paranoyang 是 development 模式
=> Booting WEBrick
=> Rails 3.2.2 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
console 中:
$ rails console
Loading development environment (Rails 3.2.2)
1.9.3p125 :001 > Rails.env
=> "development"
#1 楼 @marshluca web server 就是自带的那个 WEBrick,这个需要怎么设置吗?