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 7089883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:58:36+00:00 2026-05-28T07:58:36+00:00

I am trying to update a record from an index using either jQuery alone

  • 0

I am trying to update a record from an index using either jQuery alone or the in-place editor “Best In Place”. Not getting the checkbox and losing formatting on my <THEAD> row. I was using this rails cast as a guide but when I used the syntax on the checkbox Ryan used I got an error saying:

Update: Ruby 1.8.7

syntax error, unexpected ‘:’, expecting ‘)’

Code–

Application.js:

//= require jquery
//= require jquery_ujs
//= require_tree .
//= require jquery.tablednd_0_5.js
//= require jquery.tablesorter.js
//= require jquery.purr
//= require best_in_place

comments, crb_agenda and pre_release_agenda coffee scripts:

jQuery ->
  $('.best_in_place').best_in_place()

comments_controller.rb#update

  def update
    @comment = Comment.find(params[:id])

    respond_to do |format|
      if @comment.update_attributes(params[:comment])
        Comment.add_comment_to_jira_ticket("MCTEST-293",@comment.user_comments)
        format.html { redirect_to @comment, :notice => 'Comment was successfully updated.' }
        format.json { head :ok }
      else
        format.html { render :action => "edit" }
        format.json { render :json => @comment.errors, :status => :unprocessable_entity }
      end
    end

CRB Agenda index.html.erb up to the td with the best_in_place helper (and yes it is a mess)

<table id="main_agenda" class="agenda_table">
        <thead>
          <tr>
            <th></th>
            <th></th>
            <th>Hide?</th>
            <th>Comments</th>
            <th title="Sub tasks due in the next three days">Sub-tasks</th>
            <th>Project name</th>
            <th>Change element</th>
            <th>Issue type</th>
            <th>Key</th>
            <th>Issue links</th>
            <th>Summary</th>
            <th>Assignee</th>
            <th>Reporter</th>
            <th>Dev Lead / Resource Mgr.</th>
            <th>Planned Rel. Dt</th>
            <th>Due Dt</th>
            <th>Approval Source</th>
            <th>SOX</th>
            <th>Dev</th>
            <th>QA</th>
            <th>SQE</th>
            <th>ST</th>
            <th>UX</th>
            <th>App QA</th>
            <th>Systest QA</th>
            <th>SQE Test</th>
            <th>Dependencies</th>
            <th></th>
            <th></th>
          </tr>
        </thead>
        <tbody>
            <% @crb_agendas.each do |crb_agenda| %>
              <% @sub_tasks = [] %>
              <% @linked_issues = SubTask.where(:pdms_key => crb_agenda.key).all %>
              <% @pdms_comment = Comment.where(:jira_key => crb_agenda.key).order("updated_at DESC").first %>
              <tr class="<%= cycle('a_row','b_row') %>" id="<%= crb_agenda.id %>">
                <% SubTask.select("`key`").where(:pdms_key => crb_agenda.key).where("`key` LIKE 'CR%'").where("due_date <= '#{@date_cutoff.to_s}'").each do |sub_key| @sub_tasks << sub_key.key end %>
                <td class="mincell" title="This PDMS has an upcoming iCR on the Pre-Release Agenda"><%= if (@sub_tasks & @icr_key_list).any? == true then "*" end %></td>
                <td><%= best_in_place @pdms_comment, :do_not_show, :type => :check_box, :collection => %w[No Yes] %></td>

  end

Does that cover everything?

  • 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-28T07:58:36+00:00Added an answer on May 28, 2026 at 7:58 am

    Wound up abandoning Best in Place and creating the answer I describe here

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

Sidebar

Related Questions

I am trying to update a record from a php script if the checkbox
I'm trying to return a record from LINQ2SQL as a JsonResult to update my
I'm trying to index data from a database in Solr using the DIH. So
I´m trying to update a db record using linq to sql First i query
I'm trying to update a hashtable in a loop but getting an error: System.InvalidOperationException:
I am trying to update a field in a table with data from another
So I'm trying to update an object in my MS SQL 2005 database using
I am using SSIS 2008 and am trying to update one column in my
I am trying to UPDATE a record if there is a row in the
I'm trying to update a column in one table1 ('keyword') with data (from 'data')

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.