Ruby on Rails is an open-source web development framework optimized for programmer happiness and maintaining sustainable productivity. Many things are defined by convention, freeing you from having to re-invent things to stay productive.

learn more… | top users | synonyms (1)

-1
votes
0answers
44 views

Integrating legacy Ruby on Rails system with new ASP.NET system [closed]

My client has an existing web application (System A) which was built with RoR/PostgreSQL (hosted on linux), and now wants to have a new ASP.NET application (System B) that will integrate with it. The ...
2
votes
1answer
77 views

Is a data service API a good idea?

We currently have a monolithic Rails application that is really three separate applications that make use of the same data. In trying to figure out how to properly compartmentalize and break the ...
4
votes
3answers
137 views

Is it okay to call a model method in my view?

In the interest of keeping my Controller's skinny, I put a headline method in a Model. # My Model class Property def headline "#{name} | #{address}" end end (Then, Property Controller for ...
-2
votes
0answers
94 views

Which serverside language to learn for a non-programmer in 2013? [closed]

Introduction Hello, I can barely consider myself a programmer, and my previous experience is just implementing simple blog engine in Ruby on Rails. I don't plan, to work as a programmer for some ...
-2
votes
1answer
124 views

Learn Ruby or Java as a total beginner [closed]

I want to change my career from information security to RoR developer I left my job and I'm commited to study some months by myself, I don't have a lot of knowledge developing. I have read some books ...
3
votes
1answer
93 views

Rails + Heroku Architecture

I'm in the process of developing a Rails app that I plan on subsequently deploying to Heroku. I've never run apps on Heroku (outside of the free simple app) so I have some questions on a few things on ...
0
votes
2answers
85 views

Why there is much more support for closed xls format in rails (and ruby) than to an open ods format?

It is little depressive, but it seems to me that there is much more support for manipulating ugly proprietary closed format like xls in rails (and ruby) in general that to documented open Open ...
-1
votes
0answers
36 views

What are the differences between Vanity and Split for A/B testing in Rails that I should consider when selecting one for use in a social network site?

I am evaluating Vanity and Split to support my A/B testing on a social network platform built in RoR. What differences between the two should I consider when selecting one?
4
votes
2answers
191 views

Why is MongoDb popular with Node.js? [closed]

I've been looking att different web stacks, mainly rails and node.js. One thing that strikes me is that while rails is often used with a relational database Node.js seem to go hand in hand with ...
3
votes
1answer
118 views

Order collisions in ecommerce

Suppose I have a web app where sellers add their products and set them as available for sale. Then I show a list of products in my mobile app, where I get products via my REST API. My problem: suppose ...
0
votes
0answers
93 views

“Unbiased” recommendation on scalable architecture for real time application [closed]

I've been flipping between a few language/platform combinations trying to determine the best platform combination for a scalable system, that can handle real time application communications. The goal ...
18
votes
2answers
4k views

We have a large Ruby on Rails application (25 million monthly users), our management decided to rewrite in Node.js, am I crazy?

Please tell me if: Node.js will make our site faster! Node.js will consume fewer server resources, we can save money! Node.js will make us more productive! Node.js means we can share client and ...
1
vote
4answers
234 views

Randomness in Acceptance-Tests

I've got a simple authentication solution, where a user can log in with either email or username. Since I want to show the little feature in the acceptance tests but don't want to pollute them, I ...
0
votes
1answer
90 views

Online stores service design

I am designing an online store service app with rails. Everyone who wants to make his/her own store can do it with this app by just signing up and choosing a domain. I want to make it as SaaS as it ...
2
votes
1answer
128 views

How do these technologies go together?

Ruby on Rails Twitter Bootstrap Html5Boilerplate Backbone.JS or Knockout.JS I sort of understand what each one is individually, but my understanding isn't strong enough to understand whether ...
2
votes
0answers
231 views

How difficult would it be to port Rails to PHP 5.4? [closed]

I have no intention or desire to do this, but out of idle curiosity, what would be some of the "gotchas" if one were to want to port Rails to PHP 5.4? Would it be possible with a fairly straight ...
-1
votes
1answer
412 views

Simple game using Ruby on Rails [closed]

I want to create a simple game like tic-tac-toe or connect4 or something like that using Rails. I have a (very) basic idea of how to write a Rails app with regular html elements, but I don't really ...
29
votes
3answers
1k views

How to train junior programmers for today's (complicated) web environment?

Currently our company develops applications consisting, most of the time, in Ruby on Rails web servers and a bunch of different REST clients, from kiosk systems in Java to embedded devices in C/C++ ...
0
votes
1answer
91 views

What is a good design for a container, assignment and items

------------- 1 * -------------- * 1 -------- | Container |--------| Assignment |-----------| User | ------------- -------------- -------- ^ ...
0
votes
2answers
232 views

Should I use TDD and BDD if my project is changing fast?

I have my own little project I am creating using RoR, I plan it to have small-medium load. With no doubt I started with BDD and TDD (Cucumber and RSpec to be exact, but I am also experienced with ...
1
vote
1answer
50 views

Is there something like Brew for Sysops where I can go on a fresh VPS and say, “sissyops rails-box”?

I've been learning how to make websites with Rails for the past 4 months. I'm really starting to grok it. The problem is 99% of the tutorials out there use Heroku as the de-facto hosting platform; ...
11
votes
2answers
469 views

.Net developer trying to learn ruby on rails

I am a .NET developer and I just had the chance to play with Ruby on Rails this weekend. In .NET we separate layers of the application by creating separate class library projects. From the design ...
2
votes
2answers
154 views

How to overcome the fear of building a web application with a recurring payment system?

I'm a Ruby on Rails developer. I'd like to create a web application. I will let users get a payed subscription to use the product. So I will need a recurring billing system (e.g. via paypal). But ...
3
votes
4answers
168 views

What is the relationship between a framework like RoR and a database?

I'm a front end developer...I've never done ANY backend, although I did take a course in databases once. (I have a comp sci degree; I'm a competent programmer, I just haven't done any backend web ...
2
votes
3answers
236 views

Setting up a simple Ruby\Rails environment

I am coming from a .NET background and beginning my journey into the Mac OSX\Ruby\Rails environment. A lot of the resources I have found such as this one have between 5-10 steps for setting up a ...
0
votes
2answers
102 views

Which controller should I put for a search action that touches many different models?

I currently have the following models and am designing search functionality that searches within these 3 models: Locations Users User_friends Should I create a search controller or should I put the ...
0
votes
0answers
38 views

Reporting with authorization on Rails

I asked this on Stack Overflow and was told this is a better place to ask. I am build a rails app that has the following models*: User -name,password etc. -has_many :regions -has_many :reports ...
3
votes
5answers
229 views

Senior team members want to move query-relevant persistent data from DB to cache. Does this make sense?

I am a young engineer recently employed at a small company that sells products to the general public. We use Ruby On Rails and MySQL. Our database has a lot of customer data, but a great deal more of ...
3
votes
2answers
108 views

Does this situation call for well specified associations, single table inheritance, or polymorphic association?

I'm building a web-app where users can keep track of who owes whom money. I have users and debts. Given a user I want to be able to find out all the debts to other users, and all the loans to other ...
4
votes
3answers
168 views

Why should we use externalized property files for an application?

I am currently working on a rails project and have a requirement where I want to be able to map a country name's initial letters to its ISD code. eg: IND => 91, USA => 1, etc. The broader question ...
0
votes
2answers
159 views

How to improve database schema with different n:m and 1:n associations between users/tasks/comments/attachments

I'm trying to build a database for an upcoming Ruby on Rails webproject. There will be 4 tables minium: tasks, users, attachments and comments. And 1 table to join the n:m relations (tasks <-> ...
22
votes
4answers
947 views

When creating an api should I stick with small functions and many calls, or a few calls and large functions?

I have a rails platform that I maintain. It has a lot of different web applications built on top of it. However now a client is asking for an API so that they can keep users on their site, but take ...
1
vote
1answer
214 views

Should one declare alternative response types (e.g. JSON) in Rails controller actions even if not utilising them?

Just wondering what the accepted convention is for Rails controller design. Currently, every controller in my app that I've written it set up to send a JSON response when necessary. Thing is, I only ...
32
votes
9answers
3k views

Developing on a production server

Today I got yelled at for developing an application on a production server. Quote, "developing on a production server is not acceptable - ever!" Here is the situation. I set up a development ...
3
votes
2answers
231 views

Could Ruby on Rails haven been create in another language?

Could Ruby on rails have been created in another language like PHP or is there some functions in the Ruby langauage that makes the differences?
2
votes
1answer
286 views

What is a closure and how is it implemented in Ruby?

In the context of the Ruby programming language, what is a closure and when do you use one? What are the uses for it in Rails?
2
votes
1answer
87 views

How does a competition like Rails Rumble Work?

I am not sure weather it is a proper question to ask out here but it is really bothering for a while. As the official website writes: The Rails Rumble is a distributed programming competition ...
0
votes
1answer
126 views

Rails-API gem, Is there such thing as an API only application?

I've built a few API's using the complete rails stack. In each project there have been multiple uses for rails core features. Each of the API has had management screens for monitoring usage, managing ...
2
votes
0answers
102 views

Switching CSS to use asset pipeline in Rails?

I have a lot of legacy CSS files from what was a Rails 2.x app that got upgraded to Rails 3.2.8, and I want to switch over to using the Rails asset pipeline for stylesheets. The issue is, the CSS ...
2
votes
1answer
116 views

How to keep background requests in sequence

I'm faced with implementing interfaces for some rather archaic systems, for handling online deposits to stored value accounts (think campus card accounts for students). Here's my dilemma: stage 1 of ...
-1
votes
2answers
107 views

Cache While Developing or Finish Development then Cache? [closed]

I'm new to cache and haven't used it on my projects. I would like to know about what is best practice in caching. Should caching be done while developing or finish development then cache everything? ...
3
votes
2answers
168 views

Are session aware Models a bad thing?

I'm thinking specifically in Rails here, but I suspect this is a wider question. In a Rails web application I'm using data from the session in models in order that the models know who is logged in. I ...
2
votes
1answer
71 views

What set of tools make up “the rails way” of testing javascript in the browser?

What's the concensus for doing in-browser (either headless or remote-controlled) testing of javascript? Unit testing my JS is nice, but can't protect against irresponsible changes to the DOM. Unit ...
-2
votes
1answer
144 views

Where can I find out about basic python usage, cli, editor and testing? [closed]

I'm coming from Ruby / Ruby on Rails to Python. Where can I find or find resources about: The command prompt, what is python's version of 'irb' info and recommendations on editors, plugins and IDE's ...
-1
votes
1answer
71 views

Verify uniqueness of new content

I'm working on a review site, where there is a minor issue with almost duplicate reviews across items. Just a few words are changed. It would be very nice to be able to uncover these duplicates before ...
0
votes
1answer
99 views

What is the pattern behind respond_to / respond_with in Rails?

Is there a specific name to this? For me it looks like a view router, or a presenter router (I would name it like that) but maybe there is a better name and explication.
0
votes
1answer
337 views

Rails vs. Drupal [closed]

I was querying indeed.com/salary to investigate general market trends. When comparing ruby on rails with drupal, you would observe a substantial difference between these two. I'm not sure if the data ...
3
votes
2answers
263 views

what receives an ajax call?

I'm making a site which should (a) take information from the user in the form of files and forms, (b) take that data to the server to be run on a C application, and (c) take the result back and show ...
3
votes
4answers
982 views

Ruby on rails not popular in big international IT companies? [closed]

I would like to ask for advice more experienced ROR developers. I am new in programming and like the idea of ROR and I am before the decision on which programming language to specialize Java vs ROR. ...
0
votes
0answers
57 views

reading parameters and files on browser, looking how to execute on server

I have a site done in Rails, which uses javascript to load files and generate forms for the user to input certain information. Those files and parameters are then to be used in a fortran code on the ...

1 2 3 4