Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6214483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:53:03+00:00 2026-05-24T06:53:03+00:00

It’s not the only remote form I’m using, but I can’t see the problem

  • 0

It’s not the only remote form I’m using, but I can’t see the problem here. It’s a simple table where every row has its own form and inline form fields.

<% for temporary_address in @temporary_addresses %>

    <tr id="row-<%= temporary_address.id -%>">
        <%= form_for temporary_address, :remote => true do |form| %>

            <td>
                <%= link_to "x", temporary_address, :method => :delete, :remote => true %>
                <%= form.submit "s" %>
            </td>

            [... form fields ...]
        <% end %>
    </tr>

<% end %>

However, this only works when :remote => true is not used.

resources :temporary_addresses

is in the routes file. Delete links are working and the form is also working when not using :remote => true.

pressing submit with remote => true gives

Started POST "/temporary_addresses/12" for 127.0.0.1 at 2011-07-17 12:45:26 +0200

ActionController::RoutingError (No route matches "/temporary_addresses/12")

and submitting without remote => true works with the following response

Started POST "/temporary_addresses/12" for 127.0.0.1 at 2011-07-17 12:46:15 +0200
  Processing by TemporaryAddressesController#update as HTML
  Parameters: {[...] "commit"=>"s", "temporary_address"=>{[...]}, "id"=>"12"}

does someone have a clue about this?

EDIT 1
Removed the link_to :remote to destroy a record to check. Same error…

A rendered form looks like this:

<tr id="row-1">
    <td>
    </td>

    <form accept-charset="UTF-8" action="/temporary_addresses/1" class="edit_temporary_address" data-remote="true" id="edit_temporary_address_1" method="post">

        <div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" />
            <input name="_method" type="hidden" value="put" /><input name="authenticity_token" type="hidden" value="vpFbYO7L9fVtBsWej37FUBobraYjjdWA/F8AjWTwC7A=" />
        </div>

            <td>
                <input id="temporary_address_firstname" name="temporary_address[firstname]" size="30" type="text" value="John" />
            </td>
            <td>

                <input id="temporary_address_lastname" name="temporary_address[lastname]" size="30" type="text" value="Doe" />
            </td>
            <td>
                <input id="temporary_address_email" name="temporary_address[email]" size="30" type="text" value="john.doe@example.com" />
            </td>
            <td>
                    New record
            </td>
            <td>
                <input id="temporary_address_submit" name="commit" type="submit" value="save" />
            </td>

        </form>
</tr>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T06:53:05+00:00Added an answer on May 24, 2026 at 6:53 am

    Solved!

    Simple thing.. Firefox rearranges things when they’re not valid html. The output given above is the source code. Now that I’ve seen the generated source code (thanks to web development toolbar) the problem is clear: The hidden form fields, generated in divs with display:none have been moved outside of the form.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Seemingly simple, but I cannot find anything relevant on the web. What is the
I'm making a simple page using Google Maps API 3. My first. One marker
I want to count how many characters a certain string has in PHP, but
I have just tried to save a simple *.rtf file with some websites and
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a jquery bug and I've been looking for hours now, I can't
I want use html5's new tag to play a wav file (currently only supported
I am currently running into a problem where an element is coming back from
I have a French site that I want to parse, but am running into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.