我正在写一个Bixby胶囊,其中一个输入是街道地址。
我尝试过的一个方法是创建以下结构:
structure (FullAddress) {
description (Address of a house)
property (addressNumber) {
type (geo.StreetNumber)
min (Required)
description (Address Number)
}
property (addressStreet) {
type (geo.StreetName)
min (Required)
des
我想收集一个“评估”动作的地址输入。理想情况下,行为应该是这样的:
1) Evaluate is initiated
2) a default address is pulled from user profile,
user is asked if they would like to use this address
3) if no default address or user does not want to use it,
prompt user for an address
4) Evaluate action runs with either default address
在Ruby on Rails应用程序中
in my controller i have two action methods,first one is for load data and second one for saving data.
首先,我为这两个操作方法编写了两个不同的视图,如下所示
def index
-------
end
和相应的视图,如下所示..
<%= form_tag :action=>:save do %>
-------
<%= text_field_tag templateitem.name %>
------
--
我在收集视图中显示下面的数据。
我的JSON数据就像:
data {
type : max
id : 1234
type : vete
id : 3445
type : tomoe
id : 2220
type : matye
id : 9087
}
与每种类型相同,也有一些数据,例如:
类型:最大id: 1234
上述类型有:
[
{
name : max 1
description : masncj
name : max 1
description : masncj
name : max 2
description : masncj
name : max 3
desc
我正在从事一个ASP.NET MVC3项目,其中我定义了以下模型:
public class Model{
[Key]
int Id { get; set; }
int MappedId { get; set; }
}
此模型从控制器传递到Razor视图,如下所示:
public class Controller:Controller{
public ActionResult Edit(int id) {
Model model = repository.Get(id);
return View(model);
}
}
模