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.
1
vote
1answer
38 views
Using self.method vs the scope :method DSL
According to the Thoughbot Rails Style Guide, we should
Use def self.method, not the scope :method DSL.
My question is: is this simply for the sake of choosing one of these styles and sticking ...
0
votes
1answer
119 views
Change of session/context in rails application
I'm currently developing an app in Ruby on Rails with a social network side, and have several different models including users, groups and pages.
I would like to allow users to be group/page admins, ...
3
votes
0answers
183 views
Splitting up a Rails/Ruby app onto multiple servers
We recently moved a large application to two machines, both running the same codebase.
I. Machine A
Web server for public facing application
Receives web hook call backs from our ESP
Handles a ...
3
votes
0answers
145 views
Do Rails Join Models Get Controllers?
I have a rails app where my users can buddy up with other users. Since that relationship can have a status (approved/rejected/pending), I decided to go with a join model (UserRelationship) so now I ...
3
votes
0answers
142 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
0answers
131 views
Serialized values or separate table, which is more efficient?
I have a Rails model email_condition_string with a word column in it. Now I have another model called request_creation_email_config with the following columns
admin_filter_group:references
...
2
votes
0answers
133 views
Rails: get data about a model collection, with new model or method?
I have a model Product with attributes sales and views. I need to get sales/views count of all the products. Is more correct to implement this as a method and have a call like Product.all.sales or ...
1
vote
0answers
42 views
Database integration of Rails and Laravel apps
I have some very small apps on a VPS running ruby on rails and a co-worker also have some of his own apps running on laravel at another VPS.
So far we dont needed to share any data among the apps, but ...
1
vote
0answers
92 views
What's the best practice for adding a lot of attributes to a Rails model?
So, I'm building an API wrapper gem that works with Spree's Product model. The API provides extensive customization of the data you send to it. I would like a user of the gem to be able to take ...
1
vote
0answers
94 views
How to scrub Twitter and Facebook posts for many users
I'm making an Rails app that in theory should scrub new posts from the users facebook and twitter accounts and put them in a timeline for an analyst to analyze and determine if they are good or bad ...
1
vote
0answers
74 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 ...
0
votes
0answers
299 views
Creating a new database with Active Record
Please tell me if this is mad, but basically, I've created a custom rake task, and before it does its thing, it gives the user a warning message:
Warning, please back up your database before ...