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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T00:40:05+00:00 2026-06-08T00:40:05+00:00

This question seems simple at first glance, but has slowed down my work! Please,

  • 0

This question seems simple at first glance, but has slowed down my work! Please, help me to figure out where am I making a mistake.

I would like to build a server using Ruby-on-Rails which will have one main function: to serve a post requests with some data from my client side JS. Then use jquery’s Ajax method to send asynchronous requests:

    function processPeople() {
        SOME.api(".get", {owner_id:frnds.response[i].uid,count:"3"}, function(posts) {
                                var usefulPosts = posts.response;
                                for (var i = 1; i <= 2; i++) {

            $.ajax({
                type: 'POST',
                url: 'wallposts',
                data: {uid: usefulPosts[i]["from_id"], uniqpost_id: usefulPosts[i]["id"], tent:usefulPosts[i]["text"]}
            });

    };
    });
    i++;
    if (i<2) {
        setTimeout(processPeople, 1000);
    }
}

and here my controller where post requests are sent:

def create
    # debugger

    if !(Wallpost.from_user(params[:uid]).find_by_uniqpost_id(params[:uniqpost_id]))
    @newWP = Wallpost.new(:uid => params[:uid], :content => params[:content], 
            :uniqpost_id => params[:uniqpost_id])
    @newWP.save 


end

What if I want just to save data on server side and NOTHING more, what would I do on server side? Every time I try to post info to my sever it answers me with 500-error:

ActionView::MissingTemplate (Missing template wallposts/create, application/create with {:locale=>[:en], :formats=>[: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=>[:erb, :builder, :coffee]}. Searched in:
  * "/home/yurgen/rails_project/vkraigslist/app/views"
  • 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-08T00:40:07+00:00Added an answer on June 8, 2026 at 12:40 am

    You need to specify the return of the controller. HTTP protocol requests that.

    If you don’t want to return any code, simply put a

    head :ok
    

    in the end of your controller.

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

Sidebar

Related Questions

This seems like a simple question, but has proven to be difficult to find
This is probably a simple question but I can't seem to figure out how
my question seems simple and stupid but first read this, suppose you have a
This seems like a simple question, but it is difficult to search for. I
this seems like a simple enough question but I can't seem to find a
This seems to be an embarrassingly simple question, but, after a day of reading
I'm sure this question has a simple enough answer, but I can't seem to
This is a really simple question, and I thought .each would work but I
Referred this question first. But seems my context is different. I'll try to be
I asked this question yesterday got a pretty good answer but can't figure out

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.