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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T01:24:42+00:00 2026-06-12T01:24:42+00:00

As an exercise, I intend to replace all front-facing aspects of my Rails application

  • 0

As an exercise, I intend to replace all front-facing aspects of my Rails application with Backbone.js. Part of the plan includes redesigning everything right down to the CSS.

The issue I’m struggling with is in delegating responsibility for templates and views.

Is there any benefit to implementing the new front-end entirely in Backbone, hence only using Rails as an API?

How do I strike the right balance between Rails and Backbone when it comes to handling the HTML elements of the application?

  • 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-12T01:24:43+00:00Added an answer on June 12, 2026 at 1:24 am

    Since it seems that nobody is going to post an answer to this I’ll offer my two cents as just one point of view (I’ve written elsewhere about the issue of how to get rails and backbone.js to work well together: rails and backbone working together).

    Most people in this situation will tend to drop the rails views altogether and migrate everything to backbone.js.

    This is what I’ve done in a project that I’m working on right now.

    This is the natural course of events, and particularly once you start getting used to all the complex interesting things you can do with backbone.js and structured javascript, it becomes difficult to turn back and implement standard stateless HTML pages.

    As I mentioned in my other answer linked to above; however, there are costs to completely abandoning HTML views and the stateless layer. In my case, I intend to add back pure HTML pages for non-js-enabled browsers for GET requests only once the app has reached a certain level of functionality. We won’t support POST or PUT requests unless the user has javascript enabled (or unless they want to go through the JSON API).

    That’s the balance I’ve struck: stateless HTML (no-JS) for accessing data, but JS required for posting/changing data. Your choice will vary depending on your use case and target user.

    The other thing that I would mention is that if you have been working with rails HTML views on a project for some time, you might be unprepared for the initial overhead required to switch to backbone.js. This is not simply swapping HAML for ERB: you are migrating from a stateless front-end to a stateful one, and that is a potentially huge change (depending on the complexity of the app). I myself was a bit unprepared for the depth of that change, and had to do a lot of catching up before getting our app back on track after making the switch. And we made the switch very early, with minimal functionality already in-place.

    Anyway just a few thoughts, hope they help.

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

Sidebar

Related Questions

As part of an exercise, am implementing an ArrayList which will support Enumerations. Following
I'm developing a Grails web application (mainly as a learning exercise). I have previously
Exercise: Complex numbers are numbers that contain two components: a real part and an
I have an application which has questions. After answer all the questions, score will
For exercise purpose I'm making an application using GWT which consists of a login
As part of an exercise I am trying to define a specific behavior for
The exercise in this tutorial says: Generate a 10 x 3 array of random
The exercise says: Create a Text class that contains a string object to hold
I was trying an exercise of deleting lines from a file not starting with
I have the exercise with following code int FindFirstSet(unsigned BitMap, unsigned start) { unsigned

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.