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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:39:58+00:00 2026-06-05T12:39:58+00:00

I need to create a Rails app that will accept a Post request from

  • 0

I need to create a Rails app that will accept a Post request from a mobile client and store the information sent with the request. I’ll be using Ajax to send the request. The request is sent with the following parameters:
latitude(float)
longitude(float)
timestamp(Javascript Date object)

I’ve already created a data model with the appropriate fields using rails generate resource,
but I’m not sure how to get Rails to accept the Post request and create an object with the necessary information. How should I edit the code Rails generated to make this happen?

Thanks, and I apologize for asking such an elementary question.

  • 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-05T12:39:59+00:00Added an answer on June 5, 2026 at 12:39 pm

    Hard to tell how much you know about Rails from this question, but this is all really basic Rails functionality, so you kindof need to start from the beginning… if you do these two tutorials, you’ll be able to get started:

    1. Learn Rails Controllers
    2. Learn Rails Routing

    Then give it a shot creating a new controller and some routes that match what you’re looking for, then you can use a mozilla plugin like RESTClient to test your routes with some dummy data.

    But seriously, first step here is “Learn Rails”. 🙂

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

Sidebar

Related Questions

I'm using Rails 3 to create a project that will need a model called
I'm creating an app that will import products from several XML feeds. In the
I have an app that I'm porting from PHP/symfony to Ruby/Rails. Though the language
I have a Rails 3 app that I'm looking to create in-house analytics for.
I'm practicing my Rails development skills by building an app that will have different
I need to parse a simple json response (from my rails app): [ {
I have a rails app (Rails 3.0) that I need to temporarily take out
I'm using Rails 3 with a MySQL database, and I need to programmatically create
I am attempting to create a table in rails.. I need to be able
For my Ruby on Rails application, I need the possibility to create several LectureNote

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.