Search Discussions
-
I would very much be able to do this query with ActiveRecord: SELECT `phones`.* FROM `phones` WHERE (ddd, number) in ((31,32310512),(31,96438112)) Unfortunately, ActiveRecord gives me no way to do so ...
Rafael Almeida
May 21, 2013 at 4:12 pm
May 24, 2013 at 1:37 pm -
I'm considering implementing a feature by which a collection association might limit the results. By default, a collection association returns all values where the foreign key on the `belongs_to` or ...
Caleb Thompson
May 21, 2013 at 11:52 pm
Jun 3, 2013 at 7:39 pm -
Hey I initially posted this idea on Github where I was suggested by Steve to post it here. The idea is as follows. With the current definition of blank? as defined in ...
Amitav Mohanty
May 30, 2013 at 9:33 pm
Jun 27, 2013 at 12:20 pm -
Postgres has it: http://www.postgresql.org/docs/9.2/static/queries-with.html Arel has it: http://www.ruby-doc.org/gems/docs/a/arel-3.0.2/Arel/SelectManager.html#method-i-with As far as I can tell, ...
Joshua Wood
May 10, 2013 at 4:23 pm
Jun 8, 2013 at 7:13 pm -
Hi guys, I think this may be too daunting a task, but I'd like to propose a change to the way views are rendered in Rails. Currently, a template handler converts a template to a string containing ...
Daniel Schierbeck
May 29, 2013 at 3:13 pm
May 31, 2013 at 8:04 am -
Hello, TL;DR: I'd like to move ActionMailer configuration to confg/mail.yml (just like config/database.yml). In order to make that possible (in a sane way), I would like to standardize the way ...
Amiel Martin
May 6, 2013 at 1:04 am
May 29, 2013 at 1:25 am -
HTML5 standard allow to use unicode symbols in id attributes. Blog post about this: http://mathiasbynens.be/notes/html5-id-class and html standard page ...
Дмитрий Жлобо
May 3, 2013 at 3:54 pm
May 5, 2013 at 2:21 pm -
hi folks. on rails 4, can somebody confirm that pushing model instances onto a has_many :through relation does not create the necessary join model anymore? class Reader < AR::Base belongs_to :post ...
Glaszig
May 22, 2013 at 1:39 am
May 22, 2013 at 1:53 am -
ActionController::Caching::Sweeper depends on a controller when trying to expire actions, pages or fragments but it also invokes itself in contexts where a controller is not initialized. In those ...
Rob Gleeson
May 11, 2013 at 4:19 am
May 18, 2013 at 5:11 am -
Issue: It breaks compatibility with old good Log4r and default ::Logger. I found that issue today while trying to setup custom logger. The cause is the new ActiveSupport::Logger#silence method, which ...
Laise
May 7, 2013 at 4:36 pm
Jun 4, 2013 at 8:25 pm -
I really like that Rails 4 have ```where!``` methods. And I was expecting that when I define a named scope I also get a bang version of the scope. class Subscriber scope :active, - { where :active } ...
Радослав Станков
May 30, 2013 at 3:12 pm
May 30, 2013 at 4:18 pm -
Hi there! I've got code duplication using strong_parameters: class PeopleController < ApplicationController # ... protected def person_params params.permit(:name, pets: [ :name, :age ]) end end ### ...
Printercu
May 2, 2013 at 7:13 pm
May 2, 2013 at 9:16 pm -
Googling about 'Nested Transactions' in ActiveRecord brought me to this github issue <https://github.com/rails/rails/issues/3455 . I'm not sure if there are specific semantics around 'nested ...
Ayang99
May 28, 2013 at 7:38 pm
May 29, 2013 at 1:15 am -
Hi list, Rails already generates a request id but I don't see it used anywhere by default One nice place could be Rails::Rack::Logger#started_request_message. The log output would then be something ...
Julien Palmas
May 23, 2013 at 2:04 pm
May 24, 2013 at 3:21 am -
Hello Ruby please i need your help when i run api i get this error . *ORA-30678: too many open connections* ** * * *ORA-06512: at "SYS.UTL_TCP", line 28* * * *ORA-06512: at "SYS.UTL_TCP", line 257* * ...
Mahmoud magdi
May 23, 2013 at 2:04 pm
May 23, 2013 at 2:09 pm -
Consider this to be a pummeling massage of a not quite living equine. If using one of the several JSON de-serialization (view) methods available in Rails (JBuilder, AMS, etc.), the suggested way to ...
Gary Weaver
May 1, 2013 at 9:30 pm
May 6, 2013 at 5:25 pm -
TL;DR I'd like to expand the convention that layouts named after the current controller get loaded *instead of* the default application.html.erb, by providing the possibility to get them loaded *by ...
Christian Schell
May 19, 2013 at 7:17 pm
May 19, 2013 at 7:17 pm -
Hey, I found in the documentation about has_one *":primary_key Specify the method that returns the primary key used for the association. By default this is id."* My interpretation is that when I have ...
Martin Kufner
May 19, 2013 at 7:17 pm
May 19, 2013 at 7:17 pm -
I have a question but I since I do not understand thor so much I would like to have feed back from anyone that would like to help me here. While going through the code in: rails ...
Frank Alessander Pimenta
May 17, 2013 at 2:21 pm
May 17, 2013 at 2:21 pm -
A bug surfaced in RC1 that makes `rake test:prepare` fail when used in conjunction with ActiveRecord's table_name_prefix option. It fails to add entries to the schema_migrations table, and ...
Kstevens715
May 7, 2013 at 2:36 am
May 7, 2013 at 2:36 am -
Hi all, I talked to Aaron briefly about this at RailsConf, but I just wanted to bring this up here before I start working on it in case anyone objects. I will be looking into moving the "Plural ...
Godfrey Chan
May 3, 2013 at 11:38 am
May 3, 2013 at 11:38 am -
I'm curious about something I noticed with time_zone_options_for_select. The existing implementation sets up a lambda to convert the zones into something usable by options_for_select. That lambda ...
Brian McManus
May 1, 2013 at 5:35 pm
May 1, 2013 at 5:35 pm -
Hi everyone, I really liked the new rails 4 generated scaffold, I was working on making my code more readable for a project and I came up with this solution. Please review it, I'd like to know your ...
James Pinto
May 1, 2013 at 4:32 am
May 1, 2013 at 4:32 am
Group Overview
group | rubyonrails-core |
categories | rubyonrails |
discussions | 23 |
posts | 87 |
users | 46 |
website | rubyonrails.org |
irc | #RubyOnRails |
46 users for May 2013
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)