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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T16:34:20+00:00 2026-06-16T16:34:20+00:00

Hi I have the following form: <%= form_for featured_content, :remote => true do |f|

  • 0

Hi I have the following form:

<%= form_for featured_content, :remote => true do |f| %>
                                <%= f.text_field :url, :value => featured_content.url, :class => "form_text_field ajaxSingle" %>
                                <%= button_tag "Update", :class=>'greystyle', :type=>"submit" %>
                            <% end %>

With the following JS:

    $('.ajaxSingle').live('keyup', function() {
  $(this).parents('form:first').submit();
});

That goes to the following controller Action:

  def update
    @fc = FeaturedContent.find(params[:id])
    @fc.update_attributes(params[:featured_content])
  end

This all works perfectly. However, I get the following error in the javascript console everytime I update the field:

ActionView::MissingTemplate (Missing template featured_contents/update, application/update with {:locale=>[:en], :formats=>[:js, "application/ecmascript", "application/x-ecmascript", :html, :text, :js, :css, :ics, :csv, :png, :jpeg, :gif, :bmp, :tiff, :mpeg, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json, :pdf, :zip], :handlers=>[:builder, :erb, :coffee]}. Searched in:
  * "/Users/rordev/Code/RubyOnRails/Projects/EverythingEver/Dev/everythingever/app/views"

I only have create, destroy, update, and index. How do I get rid of this error?

  • 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-06-16T16:34:22+00:00Added an answer on June 16, 2026 at 4:34 pm

    You must tell Rails to deliver a dedicated response for your ajax call:

    def update
      @fc = FeaturedContent.find(params[:id])
      @fc.update_attributes(params[:featured_content])
      respond_to do |format|
        format.html
        format.js   { render :json => {:status => 'ok' } } #or any response you might find usefull
      end
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have done the following form <% form_for @anexo, :url => {:action => create},
I have the following very simple form: <asp:UpdatePanel ID=ClaimRewardsForm runat=server> <ContentTemplate> <span class=largeBold>Select jacket
I have the following form: class FeaturedVideoForm(ModelForm): featured_video = forms.ModelChoiceField(Video.objects.none() widget=make_select_default, required=False, empty_label='No Featured
I have the following form for photo_album which uses the nested forms feature of
i have made a simple php contact form following this tutorial: http://www.catswhocode.com/blog/how-to-create-a-built-in-contact-form-for-your-wordpress-theme The big
I have the following code in my view: <%= form_for :command_selected, :method => get,
i have the following if-clause: if(empty($var)){ $errors[]=Failure; } this is for a form that
We have the following code working for a complex rails form with checkboxes. I'm
I have the following form in a Struts2 JSP that contains some radio buttons.
I have the following form: @model Teesa.Models.SearchModel @using (Html.BeginForm(Index, Search, FormMethod.Get, new { id

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.