Search Discussions
-
I'd like to deprecate methods like includes and eager_load in Rails since I think it is possible to automatically detect when they are needed. Ideally the developer could know very little about how ...
Lawrence Wu
May 17, 2014 at 10:38 pm
May 17, 2014 at 10:38 pm -
Hello guys, We're working in some applications where we need to customise the JSON errors output in a more robust way (the front-end have a lot of backbone stuff). When a active record object fails ...
Gabriel Sobrinho
May 17, 2014 at 1:49 pm
May 17, 2014 at 2:25 pm -
Hi! I'm working on a project that uses rails and I would like to have an onboarding process where rails works even if there's no database connection. I detect if ActiveRecord::Base is connected and ...
Pier-Olivier Thibault
May 16, 2014 at 1:12 pm
May 16, 2014 at 10:26 pm -
Hey, I found myself having to use jRuby in my app for a very very small but essential piece of code. The code in question is bundled in a gem which I require in Bundler under the jRuby platform, with ...
Mohamed Wael Khobalatte
May 14, 2014 at 2:25 pm
May 15, 2014 at 1:03 pm -
Hi all, I was thinking that someone might want the type column used with Single-Table Inheritance to be an Enum rather than a string. Is the counter argument that STI is responsible for the type ...
Zac Moody
May 8, 2014 at 3:05 pm
May 13, 2014 at 2:57 pm -
It would be nice if there was a configuration option to use dashes instead of underscores when generating HTML ids and classes class="foo-bars" instead of class=foo_bars. Many popular libraries such ...
Kyle Decot
May 8, 2014 at 3:05 pm
May 8, 2014 at 3:08 pm -
When you generate a default Rails app, it puts this in application.html.erb: <%= csrf_meta_tags % This inserts a couple of <meta tags in in the <head It does this so the remote forms can be ...
Brian Morearty
May 5, 2014 at 1:54 am
May 5, 2014 at 1:54 am -
I'm trying to build a new JavaScript engine (like coffee-rails, but for purescript), and I'm having an issue with the generators. I cloned coffee-rails to start, and changed the javascript engine ...
Stephen Paul Weber
May 2, 2014 at 9:45 pm
May 2, 2014 at 9:57 pm -
Hi all, In our current project we are managing a multi-domain Rails app and we sometimes need the views to specialize depending on the domain that is running. We used to use a separate view path that ...
Ufuk Kayserilioglu
May 2, 2014 at 3:06 pm
May 2, 2014 at 3:06 pm -
I know this is some serious thread necromancy, and I apologize for that. Google shows this result prominently for this subject. How is this a security flaw? Login only succeeds if the credentials are ...
A Wilson
May 1, 2014 at 11:35 pm
May 1, 2014 at 11:35 pm -
It will be nice, if has_* methods will have named option. Example: has_many :foos, named: :boos # equivalent of has_many :boos, class_name: 'Foo', foreign_key: 'foo_id' IMHO it is quite often used ...
Łukasz Niemier
May 1, 2014 at 3:57 pm
May 1, 2014 at 10:06 pm -
I've just been getting re-acquainted with Rails 4 after spending the past year working in some other frameworks. One thing I noticed are strong parameters which I see as a really great addition! One ...
Alexander Trauzzi
May 1, 2014 at 3:10 pm
May 7, 2014 at 2:01 am -
There's this convention in Rails that when a file is first processed before the final output (e.g. from Sass to CSS or from ERB to HTML), names of those preprocessors are included in the file ...
Pan Pietruszewski
Apr 29, 2014 at 2:26 pm
Apr 29, 2014 at 5:16 pm -
Hey All, I was trying to track down the parameters issue that Aaron Patterson referred to in his keynote. I couldn't find a GH-Issue for it. Does one exist/does anyone have more context about that ...
Earl St Sauver
Apr 28, 2014 at 11:04 pm
Apr 28, 2014 at 11:04 pm -
Rubocop is a ruby code linter gem that I have been using a lot recently but with every new rails project I start I have to go through and make a number of corrections mostly to the comments being on ...
Ben Barber
Apr 28, 2014 at 12:39 am
Apr 29, 2014 at 5:00 am -
Hi, I would like to request your participation in a survey on Open Source Organizational Culture, which will provide valuable insight into how Open Source projects are run, how their participants ...
Marius Storm-Olsen
Apr 22, 2014 at 1:03 pm
Apr 22, 2014 at 3:57 pm -
Hi everyone, I am a 4th-year CS undergrad and have been keen to contribute to Rails/Jruby for a while. Recently, I came across the topic 'Getting Rails test suite to run on Jruby' on the ...
Aditya Bhardwaj
Apr 22, 2014 at 1:01 pm
May 4, 2014 at 2:58 pm -
Hi All, just wondering if anyone has brought up support for ISN (ISBN, UPC...) PG extension? Looks similar to UUID. http://www.postgresql.org/docs/current/static/isn.html Thanks. -- You received this ...
Olivier Simart
Apr 20, 2014 at 3:37 am
Apr 29, 2014 at 3:31 pm -
Any special reason why not to ? The source in question is this: https://github.com/rails/rails/blob/master/actionview/lib/action_view/helpers/form_tag_helper.rb#L427-L431 Many people have talked ...
Arthur Corenzan
Apr 18, 2014 at 2:20 pm
Apr 18, 2014 at 2:20 pm -
Just ran into this for the first time and thought it was worth talking about: because models and controllers and such just live in the root namespace, they can be shadowed when importing a gem. My ...
Stephen Paul Weber
Apr 15, 2014 at 9:12 pm
Apr 17, 2014 at 2:22 pm -
Hi, I was just wondering if there would be any reason I shouldn't do this, like problems with tags or something. Currently we're taking Cookies and CookieStore and inserting them before Logger in the ...
Josh Bourgeois
Apr 14, 2014 at 11:46 pm
Apr 14, 2014 at 11:46 pm -
When chaining calls to order on an ActiveRecord association, the result is a composition of the two order calls. I believe this breaks the principle of least surprise, since calling sort/order on a ...
Cameron Martin
Apr 14, 2014 at 11:46 pm
Apr 15, 2014 at 5:30 pm -
Hi folks, I'm thinking about a Pull Request for Rails. But, I want to validate with you. Why not put Enum into ActiveModel? We may need some enumeration into another model without ActiveRecord, a ...
Sadjow Leão
Apr 14, 2014 at 7:48 pm
Apr 15, 2014 at 1:38 am -
Hi, I want to display a drop down list of categories from my database, and I want to give a link to delete the selected category in drop down list. I have written the following code, but its not ...
Santu47
Apr 10, 2014 at 4:00 pm
Apr 10, 2014 at 4:43 pm -
Hello. Is it possible to get raw sql query result from ActiveRecord::Relation ? Now I can make it this way: sql = Note.select('count(*), commit_id').group(:commit_id).to_sql ...
Evgeniy Sokovikov
Apr 10, 2014 at 4:00 pm
Apr 10, 2014 at 6:32 pm -
In Rails 3, render_to_string ensured that the response body was set to nil after rendering so that using it to render something for purposes other than the body and then rendering or redirecting in a ...
James Coleman
Apr 9, 2014 at 2:09 pm
Apr 10, 2014 at 6:59 pm -
Hello. It looks like some users reading getting started guide are confused ([example](https://github.com/bundler/bundler/issues/2974)). It will be nice to prepare one small paragraph (probably ...
Josef Šimánek
Apr 8, 2014 at 8:01 am
Apr 8, 2014 at 8:01 am -
I'm running a Rails 4.1.0.rc2 app on a staging server and I get this error from the logs: I, [2014-04-04T16:07:31.308517 #26523] INFO -- : Completed 500 Internal Server Error in 179ms F, ...
Rodrigo Rosenfeld Rosas
Apr 4, 2014 at 8:16 pm
Apr 6, 2014 at 10:34 am -
Hi, I am looking for documentation into modifying the rails core so i can build "Rylar" using rails branch on github. I am starting on the encryption modules first to have it in the core and later on ...
Muhammad Nuzaihan Bin Kamal Luddin
Apr 4, 2014 at 3:25 pm
Apr 4, 2014 at 3:25 pm -
Hi, I was wondering if there is a specific reason why delete_all does not accept limits? Ultimately, I want to achieve batched deletes in my application and something like delete_in_batches or even ...
Isha
Apr 3, 2014 at 9:17 pm
Apr 3, 2014 at 10:00 pm -
When Rails introduced remote:true option for links (AJAX requests) I changed my view on how to handle javascript on my websites. I'm playing with streaming in Rails 4.1 (ActionController::Live) and I ...
Xpepermint
Apr 1, 2014 at 9:25 pm
Apr 2, 2014 at 3:01 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 -
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 -
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 -
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 -
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 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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
Hi, Is there a release date for 4.1? I'm starting a new project for the company I work for, and I want to use the new enums feature. Best regards! -------------------------------------- Sergio ...
Sergio Campamá
Feb 25, 2014 at 8:09 pm
Feb 25, 2014 at 11:31 pm -
I've had an interesting issue come up. We use an uncached block around a select-insert-select for an unique constraint (the second select executing if the insert failed due to a race condition with ...
Cody Cutrer
Feb 25, 2014 at 8:00 pm
Feb 25, 2014 at 8:00 pm -
Hi, Long time user of rails, fist time poster. It feels like there should be a belongs_to :through that behaves similarly to has_many :through, but for the belongs_to side of the relationship. Any ...
Rob Dawson
Feb 25, 2014 at 6:03 am
Mar 6, 2014 at 5:49 am
Group Overview
group | rubyonrails-core |
categories | rubyonrails |
discussions | 809 |
posts | 3,506 |
users | 665 |
website | rubyonrails.org |
irc | #RubyOnRails |
Top users
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)