小编Lou*_*Lou的帖子

为什么Ruby on Rails使用http://0.0.0.0:3000而不是http:// localhost:3000?

我是Ruby on Rails的新手,所以当我尝试按照官方的" 入门 "ruby on rails教程时,我有点失望,因为它很快就出错了.基本上它说:

...导航到http:// localhost:3000.您应该看到Rails的默认信息页面.

但是,当我按照说明操作时,我会得到

=> Rails 2.3.4 application starting on http://0.0.0.0:3000

在尝试了两个地址之后,我知道他们指向同一个东西,但有人可以向我解释为什么Ruby on Rails使用http://0.0.0.0:3000而不是http://localhost:3000

有没有办法让WEBbrick服务器一直使用localhost?

ruby ruby-on-rails localhost webrick

40
推荐指数
2
解决办法
5万
查看次数

如何读取和设置ExtJS网格中特定单元格的值?

我是从ExtJS开始的.我正在尝试从选中的单元格中读取一个值,
我使用的是EditorGrid,并且该商店看起来像这样:

my_store = new Ext.data.JsonStore({
    root: 'topics',
    totalProperty: 'totalCount',
    idProperty: 'details_id',

    fields: [
        {name : 'index',    type : 'int'},
        {name : 'inactive', type : 'int'},
        {name : 'c_1',      type : 'string'},
        {name : 'c_2',      type : 'string'},
        {name : 'c_3',      type : 'string'},
        {name : 'c_4',      type : 'string'}
    ],
    proxy: new Ext.data.ScriptTagProxy({
        url: 'my_proxy_url'
    })
});
Run Code Online (Sandbox Code Playgroud)

截至目前,这是我用来检索所选单元格的行和列的内容:

var column = grid.getSelectionModel().selection.cell[0];
var row    = grid.getSelectionModel().selection.cell[1];
Run Code Online (Sandbox Code Playgroud)

如何读取网格中所选单元格的值并更改此值?

grid extjs

11
推荐指数
1
解决办法
4万
查看次数

标签 统计

extjs ×1

grid ×1

localhost ×1

ruby ×1

ruby-on-rails ×1

webrick ×1