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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:37:55+00:00 2026-06-05T05:37:55+00:00

Im a newbie rails and web developer. I have some experience with iOS. Im

  • 0

Im a newbie rails and web developer. I have some experience with iOS.

Im creating a web application for the first time. However, these days all web application must be supported by iphone, Android and other clients. After spending 2-3 months understanding rails and then HTML, Javascript, JQuery and writing code. Im getting the realization that there is latency in rendering HTML and web pages.

So I was thinking if I want to make a web application, I want to make it modular by design. What I mean is I want to only render JSON in every method and let the clients figure out how to render and design the views. Keeping this in mind, I searched the web for solutions and saw people talking about creating an API.

I read up a bit about it. But my knowldege still has holes. So I would like to know how can I design a server side of a web app that can be used by different clients: iOS, Android and browsers. Is there a certain design philosophy? Dos? Donts? Any caveats? What are the technologies involved in this?

There seems to be a lot of scattered info on the web, but is there 1 place where I can learn about everything or most things I need to know to get this app running?

I would really appreciate your help.

Thanks

  • 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-05T05:37:56+00:00Added an answer on June 5, 2026 at 5:37 am

    Rails makes it very simple to display information in various formats. The respond_to method specifically in Rails 3.1, is capable of letting a controller send data to the client in different ways. Here’s an example:

    def index
      @categories = Category.query(params)
    
      respond_to do |format|
        format.html
        format.json { render_for_api :complete, :json => @categories }
      end
    end
    

    If the browser/iPhone/Android device makes a request to the index action, the controller will respond with the html and the according view, index.html.erb, but if the device requests a index.json, rails controller will respond with a representation of the object on JSON notation. (Here i am using a gem called acts_as_api to facilitate my json creating thing).

    In my opinion there’s no certain way to do it, but Rails supports development by making it easy to extend your app onto different devices.

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

Sidebar

Related Questions

Sorry, I have a Rails newbie question. In my Rails application, how can I
Just another Rails newbie with a problem. I have some Javascript (dynamic) in a
I'm a newbie to rails and am having some difficulty... I have a page
I am a newbie to rails and have developed a rails application with Rails
Rails newbie here struggling with a small project. I am creating a simple ship
I am newbie to Rails and trying to write application with TDD and BDD.
A bit of a newbie question on rails associations. I have a Bug model,
I am a newbie when it comes to Ruby On Rails (and web programming
RoR newbie here. Working the play time exercises at the end of Agile Web
I'm a newbie Rails developer who is getting the following error when trying to

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.