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

  • Home
  • SEARCH
  • 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 7033353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:03:20+00:00 2026-05-28T01:03:20+00:00

I know that there must be a really simple solution to the below problem

  • 0

I know that there must be a really simple solution to the below problem but I have been trying to work it out for the last few hours.

I’m trying to update a table when a checkbox is checked (using ajax).

<% @tasks.each do |task| %>
<tr><td>

<%= form_for task, :url => {:controller =>"tasks", :action => "update" }, :remote =>true do |t| %>
<%= t.check_box :completed_at, :class => 'submittable'%> 
<% end %>

</td><td>
<h3><%=task.description %></h3></td> 
<td><%= link_to 'Edit Task',edit_list_task_path(@list, task), :id => "edit_#{task.id}",:class=>"btn info" %></td>
<td><%= link_to 'Delete Task', list_task_path(@list, task), :method => :delete, :confirm => "Are you sure?", :id => "delete_#{task.id}", :class=>"btn danger "%></td></tr></tr>

<%end%>

However I’m getting the following routing error:

No route matches {:controller=>"tasks", :action=>"update"} 

My current routing file looks like this:

  root :to => "home#index"
  resources :documents
  resources :timelines
  resources :lists
  resources :tasks
  resources :fundraisings
  resources :news
  get "home/index"
  devise_for :users, :lists, :fundraisings, :timelines
  resources :lists do
   resources :tasks
  end
  resources :users do
   resources :lists    
  end

Any idea why?

  • 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-28T01:03:21+00:00Added an answer on May 28, 2026 at 1:03 am

    With standard RESTful routing you don’t need to specify the url. Does this not work?

    form_for task, :remote =>true do |t|
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know that there must be some differences. I have a Silverlight component (
I know that there are lots of examples out there on this, but they
I think there must be something subtle going on here that I don't know
I know websphere does it, so there must be something that lets apache figure
I know that there are many free and not so free compression libraries out
I know that there can be multiple values for an email, but I'm not
I know that there are many Delphi database related questions available, but I'm considering
I've come across a really strange problem. I have written a simple Deck class
I am sure there will be articles around this but I really don't know
I know that there is no way to fully protect our code. I also

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.