Re: [Rails-core] We are moving to https://discuss.rubyonrails.org/

2020-03-25 Thread richard schneeman
send an > email to rubyonrails-core+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-core/9b2b822c-80fe-4bac-b012-7fe79be05e84%40googlegroups.com > <https://groups.google.com/d/msgid/rubyonrails-core/9b2b822c-80fe-

Re: [Rails-core] [Feature] Add whitelist for forgery_protection_origin_check

2020-01-22 Thread richard schneeman
re+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-core/d29dd38c-fd2a-473e-9403-d0bf159e7107%40googlegroups.com > <https://groups.google.com/d/msgid/rubyonrails-core/d29dd38c-fd2a-473e-9403-d0bf159e7107%40googlegroups

Re: [Rails-core] [Rails 6] Bug in caching key generation when working with active record collections?

2019-11-05 Thread richard schneeman
o offer any assistance and lobby >>>> for implementing a fix. (If you're not interested in submitting a PR, I'd >>>> be excited to pick this up myself.) >>>> >>>> On Sun, Oct 27, 2019 at 10:41 AM Marc Köhlbrugge < >>>> marckohlbru...@gmail.com> wr

Re: [Rails-core] Proposal to run spell check on GItHub Actions

2019-10-27 Thread richard schneeman
ore+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-core/cd70b713-02a1-4812-b6f8-01dbdfa7ce01%40googlegroups.com > <https://groups.google.com/d/msgid/rubyonrails-core/cd70b713-02a1-4812-b6f8-01dbdfa7ce01%40go

Re: [Rails-core] [Rails 6] Bug in caching key generation when working with active record collections?

2019-10-27 Thread richard schneeman
; email to rubyonrails-core+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-core/4cc0ae69-c736-48d0-bd84-8b3f44dc879d%40googlegroups.com > <https://groups.google.com/d/msgid/rubyonrails-core/4cc0ae69-c736-48d0-bd84-8b3f

Re: [Rails-core] Feedback for https://github.com/rails/rails/pull/37246

2019-10-08 Thread richard schneeman
e-14b0a56d2dd4%40googlegroups.com > <https://groups.google.com/d/msgid/rubyonrails-core/1098fe56-7d37-409d-a8ae-14b0a56d2dd4%40googlegroups.com?utm_medium=email_source=footer> > . > -- Richard Schneeman https://www.schneems.com -- You received this message because you are su

Re: [Rails-core] Feature Request: Save page HTML when system test fails

2018-01-25 Thread richard schneeman
I would like that as an option. --- Schneems https://www.schneems.com From: rubyonrails-core@googlegroups.com on behalf of Marc Riera Casals Sent: Wednesday, January 24, 2018 4:16:00 AM To: Ruby on Rails:

Re: [Rails-core] Suggestion for a new Rails environment that can be used exclusively for automation testing of functional/system tests

2017-03-03 Thread richard schneeman
ating here. I don't care about how you store the information i.e. put it in an env var or some other configuration management  toolchain, just whatever you do don't put all your secrets in your app and check them in to your source control and make them available to all running instances of your app

Re: [Rails-core] Suggestion for a new Rails environment that can be used exclusively for automation testing of functional/system tests

2017-03-02 Thread richard schneeman
havior (RAILS_ENV) and config on non-heroku platforms is harder because the infrastructure for env-vars isn't as easy, but the benefits are no different. --  Richard Schneeman http://schneems.com On March 2, 2017 at 2:34:38 PM, Dieter Späth (dieter.spa...@gmx.de) wrote: To me environment variable

Re: [Rails-core] Suggestion for a new Rails environment that can be used exclusively for automation testing of functional/system tests

2017-03-02 Thread richard schneeman
ronment is fully formed. I've not found a need for a custom test like environment. --  Richard Schneeman http://schneems.com On March 1, 2017 at 7:36:22 AM, Chad Woolley (thewoolley...@gmail.com) wrote: See also this thread: https://groups.google.com/d/topic/rubyonrails-core/kqKoJHcQu9U/discu

Re: [Rails-core] [Feature] Add support HashWithIndifferentAccess to Hash#extract!

2016-09-22 Thread richard schneeman
of Hash is going to be slow. Here's an issue I opened in Rack which is closer to HWIA https://github.com/rack/rack/issues/738. --  Richard Schneeman http://schneems.com On September 22, 2016 at 8:37:32 AM, Andrey Molchanov (neod...@gmail.com) wrote: Hello there! I propose to add support for class

Re: [Rails-core] Alternative proposal to prevent destructive actions on production databases

2016-07-08 Thread richard schneeman
l. I appreciate thinking about alternate implementation ideas. In this case optimizing to remove ar_internal_metadata table is not a very worthwhile  endeavor in my opinion. --  Richard Schneeman http://schneems.com On July 8, 2016 at 9:15:59 AM, Fernando Tapia Rico (fertap...@

Re: [Rails-core] Inconsistency in use of user_name and username

2016-06-22 Thread richard schneeman
Would need to change everywhere that it's being called, add a deprecation and work with both values for now. Looks like `:username` is found more often in the codebase 334 times compared to `user_name` coming in at 231. --  Richard Schneeman http://schneems.com On June 22, 2016 at 1:17:16 PM

Re: [Rails-core] Partial model validation

2016-05-26 Thread richard schneeman
I Not sure if you saw or not, I have docs for how to cobble this together with existing pieces.  https://github.com/schneems/wicked/wiki/Building-Partial-Objects-Step-by-Step --  Richard Schneeman http://schneems.com On May 25, 2016 at 1:54:53 AM, thomas sevestre (t...@tcare.fr) wrote

Re: [Rails-core] Warn when submitting hashes with same key as string and symbol to AR methods?

2016-04-04 Thread richard schneeman
ant enough to add to Rails Core, it should be important enough to make its own gem. If that gem is so insanely wildly downloaded that everyone uses it then maybe we can consider adding it as a configuration option.  --  Richard Schneeman http://schneems.com On March 24, 2016 at 6:46:36 PM, And

Re: [Rails-core] Warn when submitting hashes with same key as string and symbol to AR methods?

2016-03-24 Thread richard schneeman
It's going to be really expensive to check that on every call. Maybe it could be a good feature for a gem you only use in development. --- Richard Schneeman http://www.schneems.com On Thu, Mar 24, 2016 at 4:22 PM -0700, "Andrew Selder" <andrew.sel...@gmail.com> wrote:

Re: [Rails-core] ActionCable using Postgres listen/notify

2015-12-21 Thread richard schneeman
We could create a PG channel that listens for a "disconnect" event perhaps. --- Richard Schneeman http://www.schneems.com On Mon, Dec 21, 2015 at 8:57 AM -0800, "Sean Linsley" <sean.ian.lins...@gmail.com> wrote: Well, there’s a seemingly intrac

Re: [Rails-core] ActionCable using Postgres listen/notify

2015-12-20 Thread richard schneeman
On a plane right now and can't really dig in but the subject interests me. If you're interested I have an ultra simple gem that uses AR for listen/notify in PG https://github.com/schneems/hey_you --- Richard Schneeman http://www.schneems.com On Sun, Dec 20, 2015 at 1:15 PM -0800, "

Re: [Rails-core] ActiveRecord connection pool management

2015-10-01 Thread richard . schneeman
ction" plans which is 500 connections. They end up having to run PgBouncer which does per machine connection multiplexing  https://devcenter.heroku.com/articles/concurrency-and-database-connections#limit-connections-with-pgbouncer   ---Richard Schneeman http://www.schneems.com On

Re: [Rails-core] Ruby on Rails Contribution

2015-09-18 Thread richard schneeman
Try out these services to help you find places to contribute. http://www.codetriage.com/rails/railshttp://www.docsdoctor.org/rails/rails — Sent from Mailbox On Thu, Sep 17, 2015 at 11:43 PM, Chirag Aggarwal wrote: > Hi, I want to contribute in Ruby on Rails.

Re: [Rails-core] String Allocation and Memory Bloat in ActiveRecord Objects

2015-08-26 Thread richard schneeman
You're correct, it wouldn't work without the hash. I didn't grok the patch until it was in front of me on github. Thank ---Richard Schneeman http://www.schneems.com On Mon, Aug 24, 2015 at 7:16 PM, null alexander.maz...@gmail.com wrote: Hello Richard, Thanks for the response

Re: [Rails-core] Feature suggestion: Use symbols internally with HashWithIndifferentAccess

2015-08-24 Thread richard schneeman
strings instead of symbols. Check out  http://www.sitepoint.com/unraveling-string-key-performance-ruby-2-2/ and scroll down to the part about Ruby 2.2 ---Richard Schneeman http://www.schneems.com On Sun, Aug 23, 2015 at 8:23 PM, Rafael Mendonça França rafaelmfra...@gmail.com wrote

Re: [Rails-core] Integrate Parse Cloud with Rails 4 App

2015-08-09 Thread richard schneeman
Try posting to https://groups.google.com/forum/#!forum/rubyonrails-talk or to stack overflow. This list is for developers who are working on building the rails library, not for developers who are building things with rails.  ---Richard Schneeman http://www.schneems.com On Sun, Aug 9

Re: [Rails-core] Migration::CheckPending does not respect Rails.application.paths['db/migrate']

2015-05-24 Thread richard schneeman
I wrote that code. Can you give me a PR with tests? Mention @schneems — Sent from Mailbox On Sun, May 24, 2015 at 2:09 PM, Sam Pierson sam.j.pier...@gmail.com wrote: I have discovered that unlike the other parts of the migrations system, the Migration::CheckPending Rack module does not

Re: [Rails-core] Would rails generate config be a useful feature?

2015-05-07 Thread richard schneeman
I'm :-1: on all file based YML config. :+1: on env based config. Either way, I would suggest writing it up as a gem to get some real world feedback. ---Richard Schneeman http://www.schneems.com On Tue, May 5, 2015 at 1:00 PM, Kyle Rippey kylerip...@gmail.com wrote: I was considering

Re: [Rails-core] Re: Forking and CoW are killing my machine when running GC

2015-04-30 Thread richard schneeman
with a forking server. Hope that helps, please re-post to another list, you can let us know the link after you do so we can followup if anyone is interested. ---Richard Schneeman http://www.schneems.com On Thu, Apr 30, 2015 at 10:37 AM, Thomas Kalmus tomkal...@gmail.com wrote: Small update. I have

Re: [Rails-core] Add Access-Control support to ActionDispatch::Static

2015-02-22 Thread richard schneeman
I'm pro letting people configure arbitrary headers for serving assets. I think we should bake support for this in Rails. On a side note I really dislike asset_sync https://gist.github.com/schneems/9374188   — Sent from Mailbox On Sun, Feb 22, 2015 at 7:31 PM, Yuki Nishijima

Re: [Rails-core] .html_safe is ambiguous and should be renamed

2015-02-04 Thread richard schneeman
can help.  Also not saying that these problems don't exist if we can't find evidence of them, merely that they might not be as impactful. ---Richard Schneeman http://www.schneems.com On Wed, Feb 4, 2015 at 6:06 PM, Pedro Nascimento pnascime...@gmail.com wrote: Rails is supposed

Re: [Rails-core] Changing welcome#index page in the new Rails applications

2014-11-27 Thread richard schneeman
:+1: I can dig it. How about adding a link to the routing page while we're at it. -- Richard Schneeman On Wed, Nov 26, 2014 at 9:04 PM, Ryan Bigg radarliste...@gmail.com wrote: Looks good to me. I would hide the box on the right by default. Please submit a PR for it :) On Thu, Nov 27

Re: [Rails-core] Make assets precompilation unnecessary

2014-11-24 Thread richard schneeman
pushed to a CDN which the apps use for an asset host I recommend not doing this. You can set up your CDN to pull instead which is much more sane and less error prone: https://devcenter.heroku.com/articles/using-amazon-cloudfront-cdn. Source: hundreds of Heroku support tickets. assets

Re: [Rails-core] Make assets precompilation unnecessary

2014-11-24 Thread richard schneeman
Serving in milliseconds This is because sprockets doesn't generate hashes, remove whitespace, compress javascript, or compile all JS to one file. If you don't need any of those things then don't use the asset pipeline, store your assets in `/public` and serve them individually. Likely because

Re: [Rails-core] Multiple Asset Hosts

2014-10-31 Thread richard schneeman
*## On Perf Changes* Any performance improvements that have wide implications such as this, need to be benchmarked before they could be merged. It's not enough to do the research, we would need actual experimental proof that it works, provides a significant speed boost to justify the extra code

Re: [Rails-core] Feature Request: Remove or replace *_path helpers for mailers

2014-07-30 Thread richard schneeman
Thanks for the review and thanks to Sean, he did most of the driving on the initial pair. Happy to have this in :D -- Richard Schneeman @schneems https://twitter.com/schneems On Wed, Jul 30, 2014 at 5:27 PM, Xavier Noria f...@hashref.com wrote: Merged. Thanks a lot Richard! 3 -- You

Re: [Rails-core] Feature Request: Remove or replace *_path helpers for mailers

2014-07-08 Thread richard schneeman
Here's the working PR for those interested in following along: https://github.com/rails/rails/pull/15840 On Wed, Jun 18, 2014 at 1:40 PM, Xavier Noria f...@hashref.com wrote: I have never checked it myself (could be cargo culting), but my understanding has always been that using the BASE tag

Re: [Rails-core] Feature Request: Remove or replace *_path helpers for mailers

2014-06-18 Thread richard schneeman
If we go down this route, the error message should be crystal clear: The method `user_path` cannot be used in a mailer as relative links in emails do not work. Use `user_url` instead Also need to make sure that it raises when rendered with mail_view. On Wed, Jun 18, 2014 at 4:11 AM, Adam

Re: [Rails-core] Feature Request: Remove or replace *_path helpers for mailers

2014-06-17 Thread richard schneeman
. ``` config.action_mailer.path_helper_behavior = :raise config.action_mailer.path_helper_behavior = :url config.action_mailer.path_helper_behavior = :make_me_lose_users_or_money # i.e. current behavior ``` -- Richard Schneeman On Thu, Jun 12, 2014 at 2:31 PM, Xavier Noria f...@hashref.com wrote: On Thu, Jun 12, 2014 at 8:07 PM, Florian

Re: [Rails-core] Feature Request: Remove or replace *_path helpers for mailers

2014-06-17 Thread richard schneeman
:( On Tue, Jun 17, 2014 at 6:30 PM, Andrew Kaspick akasp...@gmail.com wrote: Slight aside, but wouldn't a simple test case catch such an issue? Whether that be an actual mailer test or reviewing a generated email? On Jun 17, 2014 6:14 PM, richard schneeman richard.schnee...@gmail.com wrote

[Rails-core] Feature Request: Remove or replace *_path helpers for mailers

2014-06-12 Thread richard schneeman
it, or likely just have *_path helpers resolve to the full URL by default. What do you think? -- Richard Schneeman -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Core group. To unsubscribe from this group and stop receiving emails from it, send

Re: [Rails-core] smart eager loading and caching

2014-05-17 Thread richard schneeman
record and see if you can solve them. AR has the most issues open by far. — Richard Schneeman On Sat, May 17, 2014 at 6:38 PM, Lawrence Wu lawre...@lawrencewu.me wrote: I'd like to deprecate methods like includes and eager_load in Rails since I think it is possible to automatically detect

Re: [Rails-core] Proposal: Dynamic secret_tokens

2014-03-29 Thread richard schneeman
for you but right now we can't. When you serve a page and then change a token then any forms that page submits will be invalid to the next server with the new token. — Richard Schneeman On Sat, Mar 29, 2014 at 8:24 AM, Bert Goethals bertgoeth...@gmail.com wrote: Valid point. However, security

Re: [Rails-core] X-Runtime header doesn't seem to be reliable

2014-02-19 Thread richard schneeman
This functionality does not come from Rails, but rather Rack::Runtime ( http://guides.rubyonrails.org/configuring.html#configuring-middleware) you can see the middleware here: https://github.com/rack/rack/blob/master/lib/rack/runtime.rb. It looks pretty simple, i'm not sure if it is streaming

Re: [Rails-core] X-Runtime header doesn't seem to be reliable

2014-02-19 Thread richard schneeman
Rosenfeld Rosas rr.ro...@gmail.com wrote: On 19-02-2014 13:44, richard schneeman wrote: This functionality does not come from Rails, but rather Rack::Runtime ( http://guides.rubyonrails.org/configuring.html#configuring-middleware) you can see the middleware here: https://github.com/rack/rack

Re: [Rails-core] #find_in_batches should support returning Active Relations as well as arrays

2013-12-03 Thread richard schneeman
Seems good, but could be a bit odd to work with. Most people will have written code that expects an Array. It seems like an AR relation behaves exactly like an array (not sure if there are known caveats here). If there aren't any major caveats, and there's no speed degradation and all tests pass,

Re: [Rails-core] Is it possible to serialize the query builder data part of ActiveRecord::Relation

2013-12-03 Thread richard schneeman
No clue how to do this, this would be a better question for stack overflow or rubyonrails-talk group. Providing an example of what you're truing to achieve would help. Please re-post this question to either of those places. On Tue, Dec 3, 2013 at 12:40 PM, Anton Kuzmin

Re: [Rails-core] Re: rails server should optionally log to console the full exception stack trace

2013-11-18 Thread richard schneeman
It could be useful, cannot auto accept the idea without code. Potentially I would want to configure this via ENV var. — Sent from Mailbox for iPhone On Mon, Nov 18, 2013 at 2:27 PM, Alex alxtsk...@gmail.com wrote: So, would this, in principle, be good to add? On Thursday, November 14, 2013

Re: [Rails-core] Re: New Contributor

2013-09-21 Thread richard schneeman
://www.youtube.com/watch?v=Zd2oUU4qDnY slides: https://speakerdeck.com/schneems/dissecting-ruby-with-ruby. -- Richard Schneeman On Sat, Sep 21, 2013 at 1:09 PM, Kyle Rippey kylerip...@gmail.com wrote: Hi Lee, I attended a good talk at RailsConf 2013 which inspired me to start contributing

Re: [Rails-core] Rails Guides Idea: Links to relevant API pages

2013-09-18 Thread richard schneeman
:heart: love this idea. On Wed, Sep 18, 2013 at 2:26 AM, Xavier Noria f...@hashref.com wrote: This is a good proposal. We would need a helper to generate the subdomain depending on whether we are generating edge or stable guides. Also, your idea is related to the new API home page that I

Re: [Rails-core] Setup of rails repo for contribution and existing failing tests

2013-08-16 Thread richard schneeman
travis, so you will see if it fails on CI. Happy bug fixing, Richard Schneeman @schneems On Fri, Aug 16, 2013 at 5:39 AM, Pawel Janiak brand.magn...@gmail.comwrote: I have 2 questions for anyone that contributes to Rails. 1. How have you setup your bash output to have colors when running

Re: [Rails-core] Pull requests on Github

2013-07-18 Thread Richard Schneeman
be repeated. If not, keep trying till you find something that does. Raphael is correct. The team is coming off of a major release and the issues will get better. It still doesn't stop you from making an effort today. -- Richard Schneeman http://www.codetriage.com @schneems Sent from the road

Re: [Rails-core] Issue triage process

2013-06-13 Thread Richard Schneeman
I encourage people to volunteer to look at tickets. Get one a day in your inbox: http://www.codetriage.com/rails/rails If you want people to look at your pull requests and issues the best way to start is to look over other people's. You are the community. -- Richard Schneeman http

Re: [Rails-core] ActionMailer configuration API

2013-05-05 Thread Richard Schneeman
Storing configuration in your git repository is not the greatest thing on earth: http://www.12factor.net/config At least by pulling it from code it becomes very easy to assign to ENV Variables. -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Sunday

Re: [Rails-core] undefined method 'sanitize_limit' for #ActiveRecord::Relation:0x2aaaad35d720

2013-03-28 Thread Richard Schneeman
This list is reserved for discussion of the upcoming release of Rails and it's contributors. For general bugs and questions please ask this question on stack overflow or post to https://groups.google.com/forum/?fromgroups#!forum/rubyonrails-talk -- Richard Schneeman http://heroku.com

Re: [Rails-core] How to resolve gem dependencies?

2013-03-27 Thread Richard Schneeman
This would be a better question for Stack Overflow (http://stackoverflow.com). This list is reserved for discussion of new features for people building the Rails framework. -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Wednesday, March 27, 2013 at 7

Re: [Rails-core] ActiveRecord should eager load the parent record when fetching a relation Edit

2013-03-24 Thread Richard Schneeman
Or as a separate method eager_load_parent! If this is a feature you would like, I suggest you turn it into a Gem and get real world usage and feedback from the community. -- Richard Schneeman http://heroku.com @schneems Sent from the road On Saturday, March 23, 2013 at 9:51 AM, Adrien

Re: [Rails-core] Controller test session issue when using render

2013-03-16 Thread Richard Schneeman
If you can reproduce this problem in a new app open an issue on rails/rails. If you cannot, I suggest posting a question on Stack Overflow. -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Friday, March 15, 2013 at 9:21 AM, Fabio Kreusch wrote: I'm

Re: [Rails-core] Re: Home page route instead of root?

2013-03-11 Thread Richard Schneeman
about it there. -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Monday, March 11, 2013 at 11:11 AM, Ryan Bigg wrote: http://transitionculture.org/wp-content/uploads/bikeshed2.jpg On 11 March 2013 07:23, Apoorv Parijat apoorvpari...@gmail.com

Re: [Rails-core] Object#tap_if and Object#tap_unless

2013-01-25 Thread Richard Schneeman
% (users = account.users).any? users.tap do |users| % Less pretty, still works. -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Friday, January 25, 2013 at 4:13 PM, Ngan wrote: The problem (I think) with that is that #users could be an expensive call

Re: [Rails-core] Problem with Bootstrap-SASS

2013-01-22 Thread Richard Schneeman
Please direct questions about Rails to Rails Talk: https://groups.google.com/forum/?fromgroups#!forum/rubyonrails-talk (i see you already have) or to StackOverflow. This list is for the programmers who work on the framework itself. -- Richard Schneeman http://heroku.com @schneems (http

Re: [Rails-core] Should the secret_token.rb be added to the .gitignore?

2013-01-11 Thread Richard Schneeman
working on security updates. I would like to help make the default experience secure and seamless. -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Friday, January 11, 2013 at 5:29 AM, Rodrigo Rosenfeld Rosas wrote: b -- You received this message because you

Re: [Rails-core] AS core ext idea: Hash#transform_values

2013-01-07 Thread Richard Schneeman
in the AS codebase. Yay or nay? I would need to see an implementation and usage to make that call. -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Monday, January 7, 2013 at 1:37 PM, Gosha Arinich wrote: Mapping hash keys and values is tricky in Ruby. Mapping a hash

Re: [Rails-core] Error in ActiveRecord::Associations::AliasTracker when using subquery

2012-12-23 Thread Richard Schneeman
active record, to clearly demonstrate how to reproduce the error with only active record. Github issues is the best place for bug reports. -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Sunday, December 23, 2012 at 8:22 AM, Manuel Meurer wrote: Hi all

Re: [Rails-core] Testing against ruby2

2012-11-15 Thread Richard Schneeman
This would be great to get set up. There are some issues with 2.0.0 preview1 on Travis right now though. -- Richard Schneeman http://heroku.com @schneems Sent from the road On Thursday, November 15, 2012 at 4:02 PM, Rafael Mendonça França wrote: I think so, I have to check with travis

Re: [Rails-core] Custom accept headers

2012-10-31 Thread Richard Schneeman
A. S -- Richard Schneeman http://heroku.com @schneems Sent from the road On Wednesday, October 31, 2012 at 6:37 AM, Christopher COCCHI-PERRIER wrote: Hi, Currently I see many applications using custom accept headers for their API versionning such as application/vnd.foo-v1+json

Re: [Rails-core] Custom accept headers

2012-10-31 Thread Richard Schneeman
Sorry about that... Pocket email. -- Richard Schneeman http://heroku.com @schneems Sent from the road On Wednesday, October 31, 2012 at 10:15 AM, Richard Schneeman wrote: S w mill wxswcsswxe ce cxssxsqseaxqxxqs six desqssx. W ce cedsdc cx dA -- Richard Schneeman http

Re: [Rails-core] destroy callbacks race condition

2012-10-12 Thread Richard Schneeman
Can you write a public rails app that reproduces this issue? This behavior would be undesired and therefore a bug. If we can reproduce and attach that to an issue it could help the discussion. -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Friday

Re: [Rails-core] gitignore - adding database.yml

2012-10-05 Thread Richard Schneeman
[DATABASE_URL]. In development i use Foreman and a .env file for sensitive credentials. In production you could use the same, put it in your bash files, or use config vars if you're using Heroku. Related: http://www.12factor.net/config -- Richard Schneeman http://heroku.com @schneems (http

Re: [Rails-core] Re: Any rails experts able to offer some advice?

2012-09-26 Thread Richard Schneeman
://coding.smashingmagazine.com/2011/06/23/a-guide-to-starting-your-own-rails-engine-gem/ but it is a bit dated. -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Wednesday, September 26, 2012 at 8:12 PM, Jeffrey Jones wrote: Hello Richard. That makes sense, and it is the route I

Re: [Rails-core] Versioning of Views; Our Approach

2012-09-20 Thread Richard Schneeman
Seems the idea is :-1: from core. Won't be accepted. Thanks for the consideration, please move discussion to railscore-talk. -- Richard Sent from the road On Wednesday, September 19, 2012 at 11:32 PM, Pascal Hurni wrote: I would even go further on this case, have the web server

Re: [Rails-core] Re: Excessive redundant object allocation in AR

2012-09-12 Thread Richard Schneeman
Symbols are never garbage collected in Ruby. http://stackoverflow.com/questions/659755/ruby-symbols-are-not-garbage-collected-then-isnt-it-better-to-use-a-string -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Wednesday, September 12, 2012 at 11:00 AM

Re: [Rails-core] Re: Feature feedback before working and pull request please..

2012-09-11 Thread Richard Schneeman
attention: https://github.com/rails/rails/issues?state=open. -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Core group. To post to this group, send email to rubyonrails

Re: [Rails-core] [Proposal] Team issuebusters

2012-09-11 Thread Richard Schneeman
a guniea-pig for a beta project, I've written a script that can email you an open issue from Rails once a day. If you would like more information message me directly richard[at]heroku.com, once I get some polish on the project I'll mail it out to the rest of the list. -- Richard Schneeman http

Re: [Rails-core] [Proposal] Team issuebusters

2012-09-11 Thread Richard Schneeman
Even taking one new issue a day, you're guaranteed to find something to work on :) -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Tuesday, September 11, 2012 at 2:49 PM, Prem Sichanugrist wrote: Haha, maybe Andres, Maybe. Trust me, there was one time

Re: [Rails-core] [error] rake db:create

2012-08-16 Thread Richard Schneeman
This list is for developers building Rails and discussion of Rails features, please ask this question on Stack Overflow or on Rails Talk google group: https://groups.google.com/forum/?fromgroups#!forum/rubyonrails-talk. -- Richard Schneeman http://heroku.com @schneems (http://twitter.com

Re: [Rails-core] Only-Except, not_nil?

2012-08-15 Thread Richard Schneeman
Not sure what you are talking about on number 1. For number 2 use Object#blank? And Object#present? -- Richard Schneeman http://heroku.com @schneems Sent from the road On Wednesday, August 15, 2012 at 9:13 AM, kuraga wrote: Good day! I can't find two tiny features in Rails

Re: [Rails-core] Feature request: allow formats with dot in resourceful routing, like '/users.xml.zip'

2012-08-04 Thread Richard Schneeman
with no performance impact I would be :+1: otherwise it's not enough of a win as you can already do something like this (as above). If someone implements this cc/ me on the PR and I'll be happy to comment. -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems

Re: [Rails-core] Using the :layout option when calling render @variable

2012-07-26 Thread Richard Schneeman
, etc.). Once the pull request has been made core team members and the general public can comment on your code and the changes on github. -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Thursday, July 26, 2012 at 9:27 AM, Thomas Walther wrote: Hey

[Rails-core] Add an option to not create/drop a table in a given environment

2012-07-25 Thread Richard Schneeman
writing code before, so I'm not sure the scope involved in such a request. If you have an opinion about this issue, or care to look into it. Please reply: https://github.com/rails/rails/issues/2899#issuecomment-7257057 -- Richard Schneeman http://heroku.com @schneems (http://twitter.com

Re: [Rails-core] Re: perform_deliveries to be set per email / interceptors should he able to stop delivery

2012-07-20 Thread Richard Schneeman
the conversation over to Rails-Talk list. If you have questions or need advice cc/ me in a pull request. -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Friday, July 20, 2012 at 8:57 AM, Matthew Johnston wrote: Try looking into a state machine. When the user

Re: [Rails-core] perform_deliveries to be set per email / interceptors should he able to stop delivery

2012-07-19 Thread Richard Schneeman
-a-before-filter-in-usermailer-which-checks-if-it-is-ok-to-mail-a-user, though the OP never responded whether that works or not. -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Thursday, July 19, 2012 at 10:43 AM, Thibaut Barrère wrote: Hi, I met

Re: [Rails-core] URL ID

2012-07-09 Thread Richard Schneeman
Agreed, If you want custom slugs use something like https://github.com/norman/friendly_id and then you can just forego the id in the url all together. On Monday, July 9, 2012 at 1:18 AM, Ryan Bigg wrote: Very limited use-case. Can't see the point of it. -1 On Monday, 9 July 2012 at

Re: [Rails-core] suggestion for changed behaviour of non-block version of unscoped activerecord queires

2012-07-02 Thread Richard Schneeman
. -- Richard Schneeman http://heroku.com @schneems Sent from the road On Monday, July 2, 2012 at 11:44 AM, sreid wrote: I previously raised a rails issue about the use of unscoped in activerecord queries : https://github.com/rails/rails/issues/2145. It now appears that the current

Re: [Rails-core] How to access an engine's method from main application?

2012-06-21 Thread Richard Schneeman
to http://stackoverflow.com. Glad that you're using Rails, hope you find an answer. -- Richard Schneeman http://heroku.com @schneems (http://twitter.com/schneems) On Thursday, June 21, 2012 at 3:12 PM, A L wrote: Hi, I'm not sure if this is the right place to post this, but please

Re: [Rails-core] Attribute query methods and semantics

2012-05-31 Thread Richard Schneeman
not clear what exactly that would do on non-boolean attributes. Removing the questionable methods would help decrease the method count. Does anyone really need to use: @post.id? -- Richard Schneeman @schneems (http://twitter.com/schneems) On Thursday, May 31, 2012 at 3:28 PM, Jeremy Walker

[Rails-core] Re: On handling staging servers

2012-04-14 Thread richard schneeman
DHH once said the major advancement that Rails provided was empty folders, just a standard place to put things. Any app I go to, I can immediately find the assets, models, etc. In the same vein, I would support shipping with a staging environment. In my ideal world there would be a way to

[Rails-core] AR Objects saved with Errors

2012-03-13 Thread richard schneeman
If I remember correctly, adding an error to an AR object's attribute or :base previously prevented the object from being saved. This is not the current behavior of Active Record. user = User.last user.errors.add :name, name doesn't rhyme with orange user.valid? # = true user.save # = true user

[Rails-core] Re: Scaffold Generator Woes

2012-03-08 Thread richard schneeman
Anecdotally I can remember a few times I was glad, scaffolds existed like when teaching Rails classes to beginners, and having them excited to get started so quickly. I can also remember more than a few times I regretted using a scaffold after having to heavily remove or modify most of the code it

[Rails-core] Pull Request: Notify A User they Have Pending Migrations On Specific Exceptions

2011-12-29 Thread richard schneeman
I wrote a pull request to inform developers that they have pending migrations and should run `rake db:migrate` whenever they get a NoMethodError or UnknownAttributeError on an AR object and their database isn't migrated to the last version. I've gotten several community members to comment, but I

[Rails-core] Re: How to Run the ActiveRecord Test Suite

2011-12-24 Thread richard schneeman
is described how to run testshttps://github.com/rails/rails/blob/master/activerecord/RUNNING_UNIT_... On Fri, Dec 23, 2011 at 7:41 PM, richard schneeman -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Core group. To post to this group, send email

[Rails-core] How to Run the ActiveRecord Test Suite

2011-12-23 Thread richard schneeman
When I run the unmodified ActiveRecord Test suite I get failures/ errors that look like it expects external network connections. Is there an easy way to set up all of the tables needed in all the different data stores to run these tests successfully? `Errors running test_mysql, test_mysql2,