我正在使用app cmd在IIS8中创建一个新的虚拟目录.这个语法是:
appcmd add vdir /app.name:<NAME> /path:<PATH> /physicalPath:<PHYSICAL-PATH>
Run Code Online (Sandbox Code Playgroud)
这很好用.现在我需要设置一些凭据,这在GUI中很容易(虚拟目录 - >基本设置 - >连接为).当我设置它时,我可以在我的applicationHosts.config文件中看到它正在更新xml条目.所以我应该可以使用appcmd手动设置.我正在使用语法导航到正确的xml元素,因此我可以设置attribut"userName"并添加属性"password"
这是我的xml:
<sites>
<site name="EXAMPLESITE" id="4">
<application path="/" applicationPool="EXAMPLEPOOL">
<virtualDirectory path="/" physicalPath="c:\wwwroot\" userName="" />
<virtualDirectory path="/upload" physicalPath="\\SOME-COMPUTER-ON-NETWORK\upload" userName="" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:80" />
</bindings>
</site>
</sites>
Run Code Online (Sandbox Code Playgroud) 我正在关注http://guides.rubyonrails.org/getting_started.html上的指南
Ruby 1.9.2p0
Rails 3.0.0
但当我尝试添加时,我被锁定在6.2/6.3.
我收到错误(我将Post示例切换为Specie);
ActionController :: HomeError中的RoutingError索引没有路由匹配{:action =>"destroy",:controller =>"species"}
终端历史:
bundle install
rake db:create
rails generate controller home index
rm public/index.html
rails generate scaffold Specie name:string latin:string
rake db:migrate
路径localhost:3000 /物种/工作但不是localhost:3000 /物种/新
耙路线:
species_index GET /species(.:format) {:action =>"index",:controller =>"species"}
species_index POST /species(.:format) {:action =>"create",:controller =>"species" "}
new_species GET /species/new(.:format) {:action =>"new",:controller =>"species"}
edit_species GET /species/:id/edit(.:format) {:action =>"编辑",:controller =>"种类"}
种类GET /species/:id(.:format){:action =>"show",:controller =>"species"}
种类PUT/species /:id(:格式){:action =>"update",:controller =>"species"}
种DELETE /species/:id(.:format){:action =>"destroy",:controller =>"species"}
home_index GET /home/index(.:format) {:controller =>"home",:action …
我有一个status_id并尝试发布一条新评论:
POST https://graph.facebook.com/STATUS_ID/comments {message: "text" }
Run Code Online (Sandbox Code Playgroud)
我得到了结果
{
"error": {
"message": "(#200) Cannot access object_id: 10150593515092107",
"type": "OAuthException",
"code": 200
}
}
Run Code Online (Sandbox Code Playgroud)
我可以为/喜欢做相同的POST,它的工作原理.
如果我向照片添加评论也可以.然后,我可以使用照片的object_id,但状态上不存在此类字段.