我正在尝试创建一个下拉菜单,允许用户更改表格中的条目字段.用户有三个选项之一 - 热,中和冷.
我已经text_fields对其他字段做了基本相同的事情,当用户点击a时都会更新submit_tag.
有没有一种简单的方法来实现一个下拉框并将结果保存在submit_tag?
谢谢,
-克里斯
当我尝试将 ruby 更新到 2.2.4 或 2.2.3 时出现错误。我在 Osx El Capiton
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.11/x86_64/ruby-2.3.0.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Certificates in '/usr/local/etc/openssl/cert.pem' are already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/shishirsapkota/.rvm/rubies/ruby-2.3.0, this may take a while depending on your cpu(s)...
ruby-2.3.0 - #downloading ruby-2.3.0, this may take a while depending …Run Code Online (Sandbox Code Playgroud) 我确定我的功能,但我不知道这个错误的含义
"non-standard syntax; use '&' to create a pointer to member"
Run Code Online (Sandbox Code Playgroud)
这是我的功能:recherche d'un trajets dans un vector du trajets
int compagnie::rechercher_Trajet(int ind)
{
for (int i = 0; i < tab_Trj.size(); i++)
{
if (tab_Trj[i]->getNum == ind)
return i;
return -1 ;
}
}
class trajets :
int getNum() { return numero; }
};
Run Code Online (Sandbox Code Playgroud)
我求你的帮助,thnx