Search Discussions
-
POLA http://en.wikipedia.org/wiki/Principle_of_least_astonishment Examples ``` # user.rb class User < ActiveRecord::Base attr_accessible :name, :username validates :username, uniqueness: true end ...
Anh Nguyen
Mar 12, 2014 at 12:03 pm
Mar 13, 2014 at 5:01 pm -
Hi all, Security is always a hot topic, and in our company especially. We where looking into the secret tokens. And we think we can do a step better than an "secrets.yml" file. The fact is that ...
Bert Goethals
Mar 28, 2014 at 3:10 pm
Mar 29, 2014 at 7:51 pm -
When dealing with conditional class attribute values in HTML tags, I often find myself writing code like: link_to(post.title, post, class: "post #{post.active? ? "active" : ""}") The code would be ...
Stefan Schüßler
Mar 5, 2014 at 3:59 pm
Mar 6, 2014 at 12:17 pm -
I just blogged about an issue where SimpleDelegator in Rails breaks autoloading: http://thepugautomatic.com/2014/03/simpledelegator-autoloading-issues-with-rails/ Any thoughts about how (or if) Rails ...
Henrik N
Mar 2, 2014 at 8:23 am
Mar 3, 2014 at 7:52 pm -
I'm relatively new to Rails and was wondering what the reasoning behind the following is: I have a boolean field processed that I want to set to false by default: before_validation(on: :create) do ...
Michael Imstepf
Mar 6, 2014 at 5:49 am
Mar 7, 2014 at 3:44 am -
Hi, Assume I'm doing an API in Rails 4 with StrongParameters, and I got a model like Pricing, with many Prices. I want my API to support in one endpoint nested attributes for the Prices of a ...
Àlex vinyals
Mar 31, 2014 at 3:21 pm
Apr 10, 2014 at 4:00 pm -
every lib/gem will have a version, but seems everyone forgot the project itself. I preferred a config.version option in the applicaiton.rb after running rails new <project module Todo class ...
Rain Chen
Mar 3, 2014 at 4:52 pm
Mar 3, 2014 at 7:52 pm -
Hi Guys, Is there a reason why the eager_load option is hardcoded to false for the rake tasks? https://github.com/rails/rails/blob/master/railties/lib/rails/application.rb#L344 I am in a situation ...
Greg Molnar
Mar 7, 2014 at 8:13 am
Mar 7, 2014 at 10:23 am -
This is a feature request. I can not use ActiveRecord::Batches#find_each to write huge csv because find_in_batch ignores order scope. find_in_batch's note say: # NOTE: It's not possible to set the ...
亀田義裕
Mar 4, 2014 at 3:42 pm
Mar 4, 2014 at 4:31 pm -
https://github.com/rails/rails/pull/14282 Hey all, I'm sure folks are busy, but per the docs, I'm following up on a pull request I submitted about a month ago. No big rush, but just wanted to make ...
Frank Showalter
Mar 31, 2014 at 3:21 pm
Mar 31, 2014 at 3:21 pm -
As we know the model can associate other model through the foreign key which is assigned or with an “_id” suffix by default. But can we define functional foreign key by ourselves ? eg: class ...
Zhijia zhang
Mar 27, 2014 at 3:27 pm
Mar 27, 2014 at 3:27 pm -
Hi all, I actually raised this as a PR (https://github.com/rails/rails/pull/14454) but thought I would bring it up here anyway. Summary: Add an additional option :prefixing_with for delegate that ...
Mike Kelly
Mar 23, 2014 at 11:28 pm
Mar 23, 2014 at 11:28 pm -
Hi everyone, I am happy to announce that Rails 4.0.4 has been released. This is a bug fix release and includes more than 290 commits. This release is also known as "Regression Not Found" release, ...
Rafael Mendonça França
Mar 14, 2014 at 5:44 pm
Mar 14, 2014 at 5:44 pm -
Hi everyone, I am happy to announce that Rails 4.0.4.rc1 has been released. This is a bug fix release and includes more than 290 commits. If no regressions are found we will release 4.0.4 final this ...
Rafael Mendonça França
Mar 11, 2014 at 5:48 pm
Mar 11, 2014 at 5:48 pm -
Example: Post.cache_key #= posts/1-20140301093012 Post.cache_key(:created_at) #= posts/1-20140216071232 Post.cache_key(:comments_update_at, :subscriptions_updated_at) #= posts/1-20140228091114 (The ...
Ho Kuen Leung
Mar 11, 2014 at 9:12 am
Mar 11, 2014 at 9:12 am -
I know it's late in the 4.1.0 release cycle, but I was hoping somebody could review this for that release: https://github.com/rails/rails/pull/14154 It fixes an issue where default_scopes in ON ...
Matt Jones
Mar 3, 2014 at 6:24 pm
Mar 3, 2014 at 6:24 pm
Group Overview
group | rubyonrails-core |
categories | rubyonrails |
discussions | 16 |
posts | 74 |
users | 35 |
website | rubyonrails.org |
irc | #RubyOnRails |
35 users for March 2014
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)