
Ruby in Rails
sunxiang0102
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
ROR:rails server :Could not find a JavaScript runtime
$rails new demo $cd demo $rails server /usr/lib/ruby/gems/1.9.1/gems/execjs-1.3.0/lib/execjs/runtimes.rb:50:in `autodetect':Could not find a JavaScript runtime. See https://github.com转载 2012-07-27 14:50:06 · 444 阅读 · 0 评论 -
访问localhost:3000/say/hello出现routing错误
报错: Routing Error No route matches [GET] "/Say/hello" Try running rake routes for more information on available routes. 解决方法: 在你的应用程序中输入ls -l命令,你可以看见config这个目录,进入该目录。打开routes.原创 2012-07-31 14:23:33 · 978 阅读 · 0 评论 -
如何创建Hello rails !
1:首先在你选定的目录下创建一个名为demo的应用程序。 rails new demo #最新的rails在创建应用程序的时候需要加new,这与老版本不同。 2:进入demo目录,通过ls -l 你可以看见一堆文件和子目录。面对那么多目录我们完全不用理会它们存在。现在我们只需要注意其中两个:首先是app目录,我们将在其中编写应用程序;然后是script目录,其中有一些有用的工具脚本。在scr原创 2012-07-30 11:33:50 · 408 阅读 · 0 评论