Search Discussions
-
Hi, I have a complex query that, as far as I can tell, either requires Arel or SQL. Performing Arel queries with ActiveRecord is awkward. Getting the query into ActiveRecord requires ...
Bruce Perens
Jun 2, 2012 at 9:56 pm
Jun 5, 2012 at 1:50 pm -
Greetings all, I would like to start a conversation about the subtle difference between update_attribute and update_attributes, namely that update_attribute skips validations and update_attributes ...
MikeGehard
Jun 13, 2012 at 3:37 pm
Feb 22, 2013 at 5:32 pm -
I've been creating several engines for Rails lately and I found that having an engine class inherited from Rails::Engine is required if you intend to bundle some Sprockets assets. So, shouldn't the ...
Rodrigo Rosenfeld Rosas
Jun 5, 2012 at 1:10 pm
Jun 5, 2012 at 8:29 pm -
Hello all, I'm working on a Rails app and I have resources nested three deep - let's call them user, project, and issues. The route helpers now look like user_project_issue_path(@user, @project, ...
Michael Boutros
Jun 4, 2012 at 7:45 pm
Jun 7, 2012 at 2:55 pm -
Hi! I found that it's a popular use case for AR/AM validations: class User < AR::Base validates_numericality_of :age #custom validation validate :user_older_16 def user_older_16 errors.add(:age, ...
Pavel Gabriel
Jun 21, 2012 at 12:40 pm
Jun 28, 2012 at 10:40 am -
Hi guys, I'want to introduce this discussion (I'm looking for similar here, but don't found it) Actually the scopes chainity is glued with "AND" operator. Some times we need to chain the same scope ...
Daniel2d2art
Jun 21, 2012 at 2:57 pm
Jun 22, 2012 at 4:28 pm -
Shouldn't it be updated to 3.2.5? http://api.rubyonrails.org/ -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send ...
Rodrigo Rosenfeld Rosas
Jun 6, 2012 at 5:32 pm
Jun 6, 2012 at 11:48 pm -
A recent discussion here has brought konacha, an engine for testing JavaScript code, to my attention. In the meantime, I have extracted common code from several applications into an engine and there ...
Michael Schuerig
Jun 11, 2012 at 6:10 pm
Jun 12, 2012 at 12:10 am -
Hey, What you think about using a transaction during the entire db:migrate instead of each migration? Currently if we deploy 10 migrations and the latest fails, the application may be down because ...
Gabriel Sobrinho
Jun 1, 2012 at 6:56 pm
Jun 19, 2012 at 4:22 pm -
Hi, I'm not sure if this is the right place to post this, but please redirect me if I'm posting this in the wrong place. I'm trying to use a method defined in an engine's library, specifically it is ...
A L
Jun 21, 2012 at 10:27 pm
Jun 25, 2012 at 8:35 pm -
Hi. I amn just upgrading a project from 2.3.12 to 3.0.11. I have come pretty long, my unit tests succeeds, but my functional tests also tests the views. There I experience that code like <%= ...
Jarl Friis
Jun 6, 2012 at 11:44 am
Jun 6, 2012 at 1:58 pm -
Hi friends, I found a bug (?) with routes.url_helpers. Let's say my routes file contains resources :fruits Now I have the following setup: module A end module B include A end A.module_eval do include ...
Nick Sutterer
Jun 27, 2012 at 4:43 pm
Jun 29, 2012 at 12:36 pm -
Hi, Is there any particular reason why AR does not support composite primary keys? This looks like a pretty nice feature to add. Regards, Luís Ferreira -- You received this message because you are ...
Luís Ferreira
Jun 14, 2012 at 4:54 pm
Jun 22, 2012 at 5:05 pm -
Basically, I would like to be able to create different serialization_hash depending on "roles". Here's an example of what I think could be helpful: controller: render :json @clients, as: :search OR ...
Pier-Olivier Thibault
Jun 21, 2012 at 2:57 pm
Jun 22, 2012 at 2:49 am -
I'm currently working on a Rails 2.3 project but I think the code hasn't changed much around touching in the latest release so here goes: Touching seems to be less efficient than it could be ...
Spike
Jun 8, 2012 at 12:17 am
Sep 28, 2012 at 8:47 am -
Hi, I have a related but separate question. Again, please redirect me if I'm in the wrong place. I've been getting this error in production (on Heroku) only (it happens when the application is ...
A L
Jun 21, 2012 at 10:27 pm
Jun 22, 2012 at 8:59 pm -
Hi all, A while ago, I posted a pull request for PostgreSQL auto-reconnect, got some feedback on that, went back and tried again. I have had a second pull request up for quite a while now including ...
Steve Jorgensen
Jun 19, 2012 at 5:23 pm
Jun 20, 2012 at 4:25 pm -
Hello, I'm a newbie. I need help resolving this issue. I recently added a pdf to the newsletter admin section of the website and now I can no longer view page 2 of the list of pdf's. Nor can I login ...
Yatta20
Jun 25, 2012 at 10:34 pm
Jun 25, 2012 at 10:35 pm -
So that I can know there is test coverage on this in the Rails core, and I won't have to maintain a private monkey-patch indefinitely, fixing it again every time it's broken in a new and different ...
Steve Jorgensen
Jun 23, 2012 at 4:03 am
Jun 23, 2012 at 11:30 am -
Is there a reason why AM:S doesn't support arbitrary keys to serialization? I can see a lot of uses cases where arbitrary keys could come handy. Right now, if one tries to do it, AM:S checks if the ...
Pier-Olivier Thibault
Jun 21, 2012 at 2:57 pm
Jun 21, 2012 at 3:42 pm -
Hi, I am a newbie in rails. I am creating a rails app where I query an existing database consisting of multiple tables. I created a model file corresponding to each database in the model folder. Now ...
Shalini Sah
Jun 20, 2012 at 1:44 pm
Jun 20, 2012 at 1:47 pm -
Hi, I've done a quick search and haven't found any info on this topic, my apologies if this has already been addressed before. Given the following two activerecord models: N::A and N::B module N ...
Fred Wu
Jun 18, 2012 at 11:56 pm
Jun 19, 2012 at 12:28 am -
Frequently, I want use some validation with no error that blocks the updating or saving process, but give an object with some usefull informations to the controller. So i thing that a 'notice' option ...
Angelo capilleri
Jun 11, 2012 at 8:49 am
Jun 18, 2012 at 4:54 pm -
Does Rails provide a way to achieve pagination while reading data from a Yaml Document or from an excel sheet. -- You received this message because you are subscribed to the Google Groups "Ruby on ...
Mohitnegi
Jun 15, 2012 at 8:22 am
Jun 15, 2012 at 10:37 am -
I have some records in my yaml/excel file (not in database). I was wondering does rails provide a way to achieve pagination while reading from yaml document or from excel. -- You received this ...
Mohitnegi
Jun 15, 2012 at 8:22 am
Jun 15, 2012 at 8:38 am -
Hello, The uniqueness validator was always case sensitive but that seems wrong because we want uniqueness validations to be insensitive in most of the time. Do not make more sense be insensitive by ...
Gabriel Sobrinho
Jun 6, 2012 at 5:27 pm
Jun 6, 2012 at 5:39 pm -
Hi all, I've had a pull request up for a while that I'd like to get incorporated. Anything I can do to facilitate an expeditious acceptance or informative rejection? This adds auto-reconnection for ...
Steve Jorgensen
Jun 5, 2012 at 4:55 pm
Jun 5, 2012 at 5:13 pm -
Hi, Whenever I run rake db:schema:dump i get the following error rake aborted! undefined local variable or method `establish_connection' for ActiveRecord::Base:Class Please help me in this regard. My ...
Shalini Sah
Jun 4, 2012 at 3:36 pm
Jun 4, 2012 at 3:38 pm -
Hello, Is is possible to generate a new rails project that generates the files needed for Mercurial (Hg) instead of Git? I would prefer to use Hg over Git. I am sure there are some others in the same ...
Shea Martin
Jun 4, 2012 at 5:23 am
Jun 4, 2012 at 7:34 am -
This was first posted on Github, but it's not really a bug report, so... Currently the asset pipeline only has YUI as option for CSS compression, which uses the yui-compressor gem which requires ...
Matthias Siegel
Jun 30, 2012 at 8:21 pm
Jun 30, 2012 at 8:21 pm -
Hi there, I've asked this question at stackoverflow.com http://stackoverflow.com/questions/11257662/can-i-make-rails-update-attributes-with-nested-form-find-existing-records-and-ad I haven't seen a ...
Yuklai
Jun 29, 2012 at 10:03 pm
Jun 29, 2012 at 10:03 pm -
(I've posted the original issue in rails' github repository (6797) and follow up before, but I was recommended to discuss this problem here.) Say I have a record post which has_many comments. Calling ...
Yuklai
Jun 29, 2012 at 10:03 pm
Jun 29, 2012 at 10:03 pm -
Hi, I am using the "faster_helper" to avoid loading the Rails (3.2.6) environment when I'm working on a single test file. So I often just declare dummy class (which in reality is AR model) like so ...
Dmytrii Nagirniak
Jun 29, 2012 at 12:00 am
Jun 29, 2012 at 12:00 am -
The original Github issue is here: https://github.com/rails/rails/issues/6809, moving the discussion here per Steve's suggestion. Long story short: 1. The resource (and hence scaffold) generator ...
Godfrey Chan
Jun 21, 2012 at 10:27 pm
Jun 21, 2012 at 10:27 pm -
Good news everyone! Rails version 3.0.14 has been released. This release of Rails contains two important security fixes: * [CVE-2012-2694 Ruby on Rails Unsafe Query Generation Risk in Ruby on ...
Aaron Patterson
Jun 12, 2012 at 9:40 pm
Jun 12, 2012 at 9:40 pm -
Good news everyone! Rails version 3.1.6 has been released. This release of Rails contains two important security fixes: * [CVE-2012-2694 Ruby on Rails Unsafe Query Generation Risk in Ruby on ...
Aaron Patterson
Jun 12, 2012 at 9:38 pm
Jun 12, 2012 at 9:38 pm -
Good news everyone! Rails version 3.2.6 has been released. This release of Rails contains two important security fixes: * [CVE-2012-2694 Ruby on Rails Unsafe Query Generation Risk in Ruby on ...
Aaron Patterson
Jun 12, 2012 at 9:37 pm
Jun 12, 2012 at 9:37 pm -
Hi all, I have a new pull request pending: https://github.com/rails/rails/pull/6654 This is a new stab at making PostgreSQL auto-reconnection work properly. Adds test coverage to the code that is ...
Steve Jorgensen
Jun 7, 2012 at 8:37 pm
Jun 7, 2012 at 8:37 pm -
If I recall correctly it was possible to have some global generators in your user's home dir once. Was this feature removed? If so, why? Also, I can provide default options for "rails new" in ...
Rodrigo Rosenfeld Rosas
Jun 5, 2012 at 6:46 pm
Jun 5, 2012 at 6:46 pm -
Good news everyone! Rails version 3.2.5 has been released. This version of Rails is a less broken version of 3.2.4! ## What happened with 3.2.4? A regression was reported in the release candidate. I ...
Aaron Patterson
Jun 1, 2012 at 3:47 am
Jun 1, 2012 at 3:47 am
Group Overview
group | rubyonrails-core |
categories | rubyonrails |
discussions | 40 |
posts | 202 |
users | 63 |
website | rubyonrails.org |
irc | #RubyOnRails |
63 users for June 2012
Archives
- May 2014 (40)
- April 2014 (73)
- March 2014 (74)
- February 2014 (94)
- January 2014 (44)
- December 2013 (99)
- November 2013 (85)
- October 2013 (54)
- September 2013 (69)
- August 2013 (81)
- July 2013 (79)
- June 2013 (67)
- May 2013 (87)
- April 2013 (79)
- March 2013 (101)
- February 2013 (183)
- January 2013 (127)
- December 2012 (80)
- November 2012 (108)
- October 2012 (182)
- September 2012 (294)
- August 2012 (209)
- July 2012 (232)
- June 2012 (202)
- May 2012 (147)
- April 2012 (80)
- March 2012 (182)
- February 2012 (74)
- January 2012 (34)
- December 2011 (58)
- November 2011 (99)
- October 2011 (71)
- September 2011 (25)