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)

0
votes
0answers
62 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
3k 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 ...
-2
votes
0answers
67 views

Video Tutorials for Learning Ruby on Rails [closed]

So after a number of years in web development, having used PHP and ASP.NET, I now have a valid reason for learning Ruby on Rails. I've tried a number of internet tutorials but I've yet to find ...
-3
votes
0answers
47 views

Query on database recordset in ruby on rails [closed]

I want to know about following concepts: I have a model named MyModelName. I am using postgres database server and rails-3. I want to do some task with it as mentioned below- @ruby_variable_1 = ...
1
vote
4answers
212 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
69 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
122 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
216 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
262 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 ...
28
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
89 views

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

------------- 1 * -------------- * 1 -------- | Container |--------| Assignment |-----------| User | ------------- -------------- -------- ^ ...
0
votes
2answers
186 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
47 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
432 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
141 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
161 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
177 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
100 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
33 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
220 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
103 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
133 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
132 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
937 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
153 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
227 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
262 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
81 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
123 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
98 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
113 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
105 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
156 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 ...
1
vote
0answers
60 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
138 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
70 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
90 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
250 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
211 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 ...
4
votes
4answers
832 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
50 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 ...
2
votes
1answer
197 views

Is it bad form to change multiple tables in a single Rails migration file?

I wrote a migration file with the following code: class AddScheduleIdToPlayers < ActiveRecord::Migration def change add_column :players, :schedule_id, :integer add_column ...
5
votes
1answer
1k views

Performing client-side OAuth authorized Twitter API calls versus server side, how much of a difference is there in terms of performance?

I'm working on a Twitter application in Ruby on Rails. One of the biggest arguments that I have with other people on the project is the method of calling the Twitter API. Before, everything was done ...
1
vote
2answers
174 views

What is faster and preferable way for variable assignment in ruby? [closed]

I am a RoR developer and want to clarify some doubt about ruby variable assignment. In ruby we have two ways for variable assignment. str, arr, num = "Hi", [1, 2], 3 and str = "Hi" arr = [1, 2] ...
1
vote
1answer
237 views

Applying for job: how to showcase work done for (private) past clients?

I want to apply for my first "real" (read: non-freelance) Ruby on Rails job. I've built several apps already. My best work (also the most logically complicated app) was for a freelance client, and ...
2
votes
2answers
259 views

Should I prefer instance methods over class methods in Ruby?

I'm working on a rails application, and I've been pulling functionality out of my rails code and into pure ruby classes in lib/. I've found myself often writing classes like this: class ...
4
votes
3answers
145 views

How to architect this simple problem in high level

I need help with setting up the models(associations), on this problem.Write an application which displays these events in descending chronological order, For example, they can choose to see every ...
1
vote
2answers
650 views

Is it worth converting a Django project to Rails?

I have a project I shelved a while back- it was essentially a working web app built in django but I stopped working on it to work on something else. I plan on starting it up again in my spare time, ...
0
votes
2answers
238 views

How do I read API documentation?

I've been trying to read through the RoR API to try to learn things that the tutorial missed, and I haven't been able to follow it at all. The only time I've read documentation was when I needed to ...

1 2 3 4