`
rshua
  • 浏览: 23139 次
  • 性别: Icon_minigender_1
  • 来自: jx
文章分类
社区版块
存档分类
最新评论

link_to_remote

阅读更多
This is a neat trick: (ajax-version)

link_to_remote('submit', :url => {:action => 'blabla', :id => 
'optional'}, :submit => "id_of_element_around_your_checkboxes")

The important part is the :submit option ofcourse, just wrap the 
elements you want to submit in a <div> (or whatever) and everything in 
it will be posted as if it was in a form.
Very usefull for posting rows of a table, because you can't put a form 
around a complete row. Or for posting something that's inside a form 
(forms in forms are not allowed)
分享到:
评论

相关推荐

    fp_table_rails:Rails的简单表生成器

    &#37;= table_for Article, @articles do |t| %&gt; &lt;&#37;= t.column :title %&gt; &lt;&#37;...= link_to 'Destroy', article, method: :delete, remote: true %&gt; &lt;&#37; end %&gt;&lt;&#37; end %&gt;

    FPGA UDP千兆以太网工程

    input [31:0] remote_ipaddr, //PC ip address input [15:0] local_port, //FPGA port number //interface to ethernet phy output mdc, inout mdio, output phy_rst_n, output is_link_up, `ifdef RGMII_IF...

    ANSI_E1-20&E1;-37-1&E1;-37-2_RDM.pdf

    2010, Entertainment Technology-RDM-Remote Device Management over USITT DMX512 Networks, describes a method of bi-directional communications over a USITT DMX512/1990 or ANSI E1.11 - 2004 data link ...

    JLink_Windows_V648.zip

    DLL: Infineon TLE98xx: Some J-Link LITEs could not connect establish a successful target connection due to missing firmware functionality. Fixed. DLL: JTAG: When only having 1 TAP in the JTAG chain ...

    rails-bootstrap-modal:在 Rails 中的 Bootstrap 模式中显示视图的示例

    = link_to "New Contact", new_contact_path, remote: true, class: "btn btn-primary" %&gt; 它指向new_contact_path路由,但请注意remote: true 。 这告诉 Rails 使用 AJAX 调用此路由。 ContactsController的new...

    Web Hacking 101: How to Make Money Hacking Ethically

    Each example includes a classification of the attack, a report link, the bounty paid, easy to understand description and key takeaways. After reading this book, your eyes will be opened to the wide ...

    JLink_Windows_V660d.exe

    最新J-LINK调试软件6.60d,JLink_Windows_V660d: Version V6.60d (2020-...Remote Server (Windows): Starting a second instance of the J-Link Remote Server did not work correctly. Introduced with V6.60. Fixed.

    remote-manager:用于远程 SSH 和 Midnight Commander 连接的 Shell 管理器

    外壳远程管理器使用子组管理与多个列表的 SSH 连接并轻松连接 + 选择运行 SSH 或 Midnight Commander。执照项目在 Do What The ...cd ~ /.remote-manager/$ cp config.dist config# edit new config file# link run.sh

    remote-duels-show

    远程决斗表演 可远程控制的生活点数计算器,可用作Remote Duel视频源上的小部件。... "imageUrl": "https://link.to/deck-images/deck-image.png" }, ... ] 正在安装 这将帮助您启动开发环境。 安装依赖项 yarn

    rfc全部文档离线下载rfc1-rfc8505

    seems natural to provide the ability to use any remote HOST as if it had been dialed up from a TTY (teletype) terminal. Additionally, we would like some ability to transmit a file in a somewhat ...

    IRPTrace2.00.002.zip

    A possibility to collect output on a remote computer in a terminal program was fixed. 3. Help was updated with information about how to collect IRPTrace's output on a remote computer in Hyper...

    JLink_Windows_V670a.exe

    When having multiple J-Link Remote Server instances running on the same machine, it could happen that when disconnecting one client from one server, the other server also lost its connection....

    git-remote-gitopia:Gitopia的git-remote-helper

    git-remote-gitopia git 远程助手git push将收取0.01 AR或交易费用... export GITOPIA_WALLET_PATH=/path/to/wallet 您不需要直接运行git-remote-gitopia ,当gitopia://遇到远程形式gitopia://时,它将被git自动调用

    计算机网络第六版答案

    Asking which road to take is analogous to a packet asking which outgoing link it should be forwarded on, given the packet’s destination address. 21. The maximum emission rate is 500 packets/sec and...

    Learning Penetration Testing with Python(PACKT,2015)

    Python is a powerful new-age scripting platform that allows you to build exploits, evaluate services, automate, and link solutions with ease. Python is a multi-paradigm programming language well ...

    Android代码-color picker for android

    Color Picker simple android color picker with ...add remote maven url in allprojects.repositories allprojects { repositories { maven { url "https://jitpack.io" } } } then add a library dependenc

    UE(官方下载)

    Link to remote directories Sync local directories with remote (FTP/SFTP) directories Compare Modified File Against Source File How to compare the modified file against the source file on disk. Column ...

    MQTT文档 Protocol Specifications

    connectivity protocol It was designed as an extremely lightweight publish subscribe messaging transport It is useful for connections with remote locations where a small code footprint is required and ...

    RCP-T01协议

    As the protocol is ASCII text based, remote changes can be made using a terminal or a computer running terminal emulation software. For most applications only the .S command will be required to set ...

    802.3ah-2004_OAM_Part

    mechanisms useful for monitoring link operation such as remote fault indication and remote loopback control. In general, OAM provides network operators the ability to monitor the health of the network...

Global site tag (gtag.js) - Google Analytics