Re: [Rails-core] 5x speedup in inflections

2012-02-12 Thread Yehuda Katz
(mostly by the router). It required some back-compat breakage, and since the inflector isn't a large cost even in tiny API-like requests, we dropped it. Yehuda Katz (ph) 718.877.1325 On Sun, Feb 12, 2012 at 2:25 PM, Xavier Noria f...@hashref.com wrote: OK, the alternation is a red herring. I have

Re: [Rails-core] Rails 4.0 and String#encoding_aware?

2011-12-22 Thread Yehuda Katz
What do you mean? Yehuda Katz (ph) 718.877.1325 On Wed, Dec 21, 2011 at 6:17 AM, Jeremy Kemper jeremykem...@gmail.comwrote: On Wed, Dec 21, 2011 at 1:56 AM, Sergey Nartimov just.l...@gmail.comwrote: I'm going to add deprecation to String#encoding_aware? method and remove all of its usage

Re: [Rails-core] Rails 4.0 and String#encoding_aware?

2011-12-22 Thread Yehuda Katz
If there are Ruby engines with only partial 1.9 support, and we want to support them, we should probably PDI whether we are in a position to drop 1.8 support at this time. Yehuda Katz (ph) 718.877.1325 On Thu, Dec 22, 2011 at 8:12 AM, Jeremy Kemper jeremykem...@gmail.comwrote: Encoding

Re: [Rails-core] Why isn't bundle run with --local on rails new generator?

2011-12-20 Thread Yehuda Katz
to satisfy the dependencies from your local gems. Unfortunately, it will not always work. Yehuda Katz (ph) 718.877.1325 On Tue, Dec 20, 2011 at 9:35 AM, Rodrigo Rosenfeld Rosas rr.ro...@gmail.com wrote: Creating a new Rails app nowadays in my computer with Bundler-pre takes about 6s only

Re: [Rails-core] automatic return from render and redirect

2011-12-19 Thread Yehuda Katz
Yehuda Katz (ph) 718.877.1325 2011/12/19 Nicolás Sanguinetti h...@nicolassanguinetti.info On Mon, Dec 19, 2011 at 11:56 PM, Steve Klabnik st...@steveklabnik.com wrote: throw/catch for flow control is bad. Indeed it is. It's the one thing in Sinatra I always disliked. If I had to choose

Re: [Rails-core] Why do we have release candidates for patch releases?

2011-11-15 Thread Yehuda Katz
. I don't want to build a process around the assumption of no mistakes. Yehuda Katz (ph) 718.877.1325 On Tue, Nov 15, 2011 at 7:26 AM, Jeremy Kemper jeremykem...@gmail.comwrote: On Tue, Nov 15, 2011 at 6:36 AM, Mislav mislav.maroh...@gmail.com wrote: Rails 3.1.2.rc2 just got released. Around

Re: [Rails-core] class_attribute thread safety and default value

2011-11-14 Thread Yehuda Katz
class_attribute works by creating a method on the class, and creating methods should be reliable. Additionally, class_attributes are used for configuration during boot, which is not a threadsafe environment. Yehuda Katz (ph) 718.877.1325 On Mon, Nov 14, 2011 at 10:19 AM, Nick Urban nickur

Re: [Rails-core] Re: class_attribute thread safety and default value

2011-11-14 Thread Yehuda Katz
Agreed. Class attributes have similar threading semantics to class variables, with the improvement that they inherit properly. Yehuda Katz (ph) 718.877.1325 On Mon, Nov 14, 2011 at 11:46 AM, Michael Koziarski mich...@koziarski.comwrote: On Tuesday, 15 November 2011 at 8:06 AM, Nick Urban

[Rails-core] PROPOSAL: Regarding ActionPack Dependencies and ActionView

2011-07-16 Thread Yehuda Katz
to be used at all except in a test The short version is that ActionDispatch and ActionController use a lot of the dependencies, but ActionView does not. I would like to propose that we break out ActionView into its own gem with only a few dependencies, and make ActionPack depend on it. Yehuda Katz Chief

Re: [Rails-core] Slow startup using ruby 1.9.2 vs 1.8.7

2011-01-10 Thread Yehuda Katz
There are things that the C require code does in 1.9 that slow things down. One such example is re-checking $LOAD_PATH to make sure it is all expanded on every require. This is something that should be addressed by ruby-core. I'll open a ticket on redmine if there isn't one already. Yehuda Katz

Re: [Rails-core] Are plugins still necessary in Rails3?

2010-12-07 Thread Yehuda Katz
Or even easier: # Gemfile gemspec Yehuda Katz Architect | Strobe (ph) 718.877.1325 On Tue, Dec 7, 2010 at 5:56 PM, Jan jan.h@gmail.com wrote: On Wed, Dec 8, 2010 at 7:50 AM, Rodrigo Rosenfeld Rosas rr.ro...@gmail.com wrote: On 07-12-2010 18:34, Michael Koziarski wrote: I wanted

Re: [Rails-core] Re: Rack::Response#body vs ActionDispatch::Response#body

2010-11-30 Thread Yehuda Katz
of body, if Rack is calling #close on the result from #body (maybe something like string_body). Alternatively, we may want to create a debugging response object, and a to_something method to convert a response to that, but I worry that it has untold potential for breakage. Yehuda Katz Architect

Re: [Rails-core] Re: Progressive rendering

2010-10-10 Thread Yehuda Katz
I like that! :finalize = true works for me (I'd rather not make the API expose the reason for the API) Sent from my iPhone On Oct 10, 2010, at 12:11 PM, Robert Pankowecki robert.pankowe...@gmail.com wrote: Anyway, I kinda like provide, but I like final_content_for better. Mostly, I feel like

Re: [Rails-core] -j parameter to select vendor javascript library when starting new Rails app

2010-09-11 Thread Yehuda Katz
Can you submit this as a pull request on GitHub? Yehuda Katz Architect | Engine Yard (ph) 718.877.1325 On Sat, Sep 11, 2010 at 2:30 AM, Teng Siong Ong siong1...@gmail.com wrote: patch added: https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/5613-adding-j-parameter-for-rails

Re: [Rails-core] -j parameter to select vendor javascript library when starting new Rails app

2010-09-11 Thread Yehuda Katz
Just to be clear, I'm in favor of pull requests for patch management; don't have a strong opinion about bug reports (yet) Sent from my iPhone On Sep 11, 2010, at 8:42 PM, Chad Woolley thewoolley...@gmail.com wrote: On Sat, Sep 11, 2010 at 6:03 PM, Ryan Bigg radarliste...@gmail.com wrote: I

Re: [Rails-core] 1.9.2 why does relative_require need an additional backtrack in path

2010-09-09 Thread Yehuda Katz
require zoom/library_name, not require File.dirname(__FILE__) + library_name from the zoom directory. Yehuda Katz Architect | Engine Yard (ph) 718.877.1325 On Thu, Sep 9, 2010 at 9:25 AM, byrnejb byrn...@harte-lyne.ca wrote: Why does Ruby-1.9.2-p0 require an additional ../ for relative paths when

Re: [Rails-core] Observers no longer fire outside of ActiveRecord transactions

2010-09-02 Thread Yehuda Katz
That's why we have after_commit in Rails 3. ;) Sent from my iPhone On Sep 2, 2010, at 6:39 PM, Michael Koziarski mich...@koziarski.com wrote: In my mind, observer callbacks should not be fired inside the AR transaction to avoid race conditions when observers kick of processes that try and

Re: [Rails-core] How to disable ORM in Rails 3

2010-07-24 Thread Yehuda Katz
rails new myapp --skip-active-record :-D Yehuda Katz Architect | Engine Yard (ph) 718.877.1325 On Sat, Jul 24, 2010 at 12:47 PM, Rodrigo Rosenfeld Rosas rr.ro...@gmail.com wrote: Is there any way to prevent Rails 3 from using an ORM? In Rails 2, it used to have a description

Re: [Rails-core] How to disable ORM in Rails 3

2010-07-24 Thread Yehuda Katz
Whoops! --skip-activerecord Yehuda Katz Architect | Engine Yard (ph) 718.877.1325 On Sat, Jul 24, 2010 at 1:08 PM, Rodrigo Rosenfeld Rosas rr.ro...@gmail.com wrote: Maybe the option isn't in the docs because it doesn't exist on Rails 3 beta 4... This command-line didn't work for me... Em

Re: [Rails-core] Rake tasks in production, application models, and Rails 2.3.8-3.0

2010-07-13 Thread Yehuda Katz
load for Rake tasks. I'm surprised nobody else hit this before. Yehuda Katz Architect | Engine Yard (ph) 718.877.1325 On Tue, Jul 13, 2010 at 2:58 AM, Mislav Marohnić mislav.maroh...@gmail.comwrote: On Mon, Jul 12, 2010 at 02:15, Michael Koziarski mich...@koziarski.comwrote: Either way

Re: [Rails-core] Re: make loading full rubygems optional

2010-07-06 Thread Yehuda Katz
Bundler does not currently support a mode of operation without Rubygems, but we plan to add such a mode in 1.1. Yehuda Katz Architect | Engine Yard (ph) 718.877.1325 On Tue, Jul 6, 2010 at 11:48 AM, rogerdpack rogerdp...@gmail.com wrote: Currently rails 2.3.8 and 3.0 all force a full

Re: [Rails-core] Rendering a different format in the implementation of a renderer

2010-07-04 Thread Yehuda Katz
You can do something like this in Rails 3: render :partial = foo.html if you're in an XML template et al. Yehuda Katz Architect | Engine Yard (ph) 718.877.1325 On Sun, Jul 4, 2010 at 7:07 AM, Michael Schuerig mich...@schuerig.dewrote: Yehuda has a nice article on implementing a custom

Re: [Rails-core] don't reload in dev mode

2010-07-03 Thread Yehuda Katz
. Yehuda Katz Architect | Engine Yard (ph) 718.877.1325 On Sat, Jul 3, 2010 at 10:40 AM, rogerdpack rogerpack2...@gmail.com wrote: Request (unless rails already does this...) Currently with active_support it reloads the class chain at the beginning of each incoming HTTP request. Suggestion

Re: [Rails-core] non auto load in concurrency

2010-07-03 Thread Yehuda Katz
Person.say_hello end Yehuda Katz Architect | Engine Yard (ph) 718.877.1325 On Sat, Jul 3, 2010 at 10:43 AM, rogerdpack rogerpack2...@gmail.com wrote: I am under the impression that if config.threadsafe! was set that it preloaded all files in the require paths, instead of using autoload. Suggestion: use

Re: [Rails-core] Default JavaScript library

2010-05-27 Thread Yehuda Katz
/rubyonrails-core?hl=en. -- Yehuda Katz Architect | Engine Yard (ph) 718.877.1325 -- 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-c...@googlegroups.com. To unsubscribe from this group, send email

Re: [Rails-core] Default JavaScript library

2010-05-27 Thread Yehuda Katz
: On 27.5.2010, at 18.11, Yehuda Katz wrote: At every talk I give at a conference, I ask whether people use jQuery in their Rails apps. In every case, close to 100% of the room raises their hands. In all fairness, I think that's a bit misleading question. I raised my hand when you asked it in Frozen

Re: [Rails-core] Default JavaScript library

2010-05-27 Thread Yehuda Katz
I agree. Let's get 3.0 out and table this until then. Deal? Yehuda Katz Architect | Engine Yard (ph) 718.877.1325 On Thu, May 27, 2010 at 2:24 PM, Norman Clarke nor...@njclarke.com wrote: Why? SQLite3 was made the default database in 2.0.2 and the world didn't stop. It's a change

Re: [Rails-core] Re: Default JavaScript library

2010-05-24 Thread Yehuda Katz
about this topic. Yehuda Katz Architect | Engine Yard (ph) 718.877.1325 On Mon, May 24, 2010 at 2:35 PM, Norman Clarke nor...@njclarke.com wrote: I suppose once 3.0 is released and it's just as easy to use jQuery with Rails as Prototype, it should be easy to determine which one people

Re: [Rails-core] Should an blank string be html_safe?

2010-05-17 Thread Yehuda Katz
) to achieve this. In the end, the rule is simple and consistent. Direct instances of String are always not html_safe. This means that concatenating safe Strings onto a String results in an unsafe String. Yehuda Katz Architect | Engine Yard (ph) 718.877.1325 On Tue, May 18, 2010 at 2:03 AM, Mislav

Re: [Rails-core] What is the deal with Controller additions and helper methods!?

2010-05-13 Thread Yehuda Katz
I'd recommend render_to_string :inline for this case. Yehuda Katz Architect | Engine Yard (ph) 718.877.1325 On Thu, May 13, 2010 at 2:31 PM, Ryan Bigg radarliste...@gmail.com wrote: On 14 May 2010 07:22, Michael Koziarski mich...@koziarski.com wrote: But I'd question what you're trying

Re: [Rails-core] Add method to get at captured content_for

2010-05-07 Thread Yehuda Katz
Simply calling content_for(:name) should work :) Yehuda Katz Architect | Engine Yard (ph) 718.877.1325 On Wed, May 5, 2010 at 4:55 PM, Brian Durand br...@embellishedvisions.comwrote: In Rails 3 the only way to get for content captured with the content_for method in a view is to call yield

Re: [Rails-core] Ruby 1.9 + Rails 2.3.5 + UTF8 support a dead end?

2010-04-18 Thread Yehuda Katz
, which would (at very least) pick up the default language from the environment. I have some more comments inline. Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 On Sun, Apr 18, 2010 at 2:10 AM, Czarek cezary.bagin...@gmail.com wrote: On Sat, Apr 10, 2010 at 09:15:54PM +0200, Mislav

Re: [Rails-core] Re: Rails 3 beta3 app generator does not generate default stylesheet

2010-04-18 Thread Yehuda Katz
Yeah! Let's fix that :) I intended to actually mention that I used a stylesheet, but then totally forgot. Fail! Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 On Thu, Apr 15, 2010 at 11:52 AM, Joe Smith unknown_kev_...@hotmail.comwrote: Kristian Mandrup kmand...@gmail.com wrote

Re: [Rails-core] Re: Access to more Arel predicate types from where condition hash

2010-04-18 Thread Yehuda Katz
Maybe we should fork these kinds of gems into the Rails repo and point them out in the guides? In my view, we'll eventually roll some of these solutions into Rails once they get robust, and used by more people, so let's encourage that! Yehuda Katz Developer | Engine Yard (ph) 718.877.1325

Re: [Rails-core] (Rails3-master) erubis: how to use things like preprocessing?

2010-04-07 Thread Yehuda Katz
majority of the performance improvement would likely apply to using that helper in a dynamic context. And of course, we can always improve the performance of helpers like link_to much more (a focus of 3.0 and even more in future versions of Rails). Yehuda Katz Developer | Engine Yard (ph) 718.877.1325

Re: [Rails-core] XSS in Rails 3: raw(...) for EVERY SINGLE FIXED(!) STRING??!!

2010-04-04 Thread Yehuda Katz
internally marks its own Strings as safe, which is why you don't need to mark form_for, link_to, etc. as html_safe. Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 On Sun, Apr 4, 2010 at 8:55 AM, Daniel Schierbeck daniel.schierb...@gmail.com wrote: That seems reasonable. Perhaps the tainting

Re: [Rails-core] How to write tests for missing 'require' in the Rails core?

2010-02-27 Thread Yehuda Katz
This is actually what the Isolated test case is for. You'll see that we use it extensively in Railties specifically to isolate tests from added dependencies. Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 On Sat, Feb 27, 2010 at 11:49 AM, Jeroen van Dijk jeroentjevand...@gmail.com wrote

Re: [Rails-core] Re: How to write tests for missing 'require' in the Rails core?

2010-02-27 Thread Yehuda Katz
I think a better approach would be testing each module in isolation for its intended purpose. So in other words, try JUST pulling in Rendering into a Metal and see that it actually can support all the rendering cases in the Rendering module. Yehuda Katz Developer | Engine Yard (ph) 718.877.1325

Re: [Rails-core] Having Rails 2.3pre or Rack 1.1 installed breaks Rails 2.x

2010-02-22 Thread Yehuda Katz
dependency to = 1.0.0 is a problem because Rails could potentially break if a new (incompatible) version of Rack is released. The entire purpose of the ~ dependency is to say I know for sure I work on Rack 1.0.x, but not some future version. Yehuda Katz Developer | Engine Yard (ph) 718.877.1325

Re: [Rails-core] Re: Having Rails 2.3pre or Rack 1.1 installed breaks Rails 2.x

2010-02-22 Thread Yehuda Katz
Responses inline. On Mon, Feb 22, 2010 at 3:08 AM, Hongli Lai hon...@phusion.nl wrote: On Feb 22, 11:25 am, Yehuda Katz wyc...@gmail.com wrote: Hongli, This is a classic problem of the sort Bundler was created to solve. The only possible solutions are to either ensure

Re: [Rails-core] Patch for bundled gems that depend on application config settings

2010-02-20 Thread Yehuda Katz
Gems are loaded first so that, if they want, they can set things up for application configuration. If you want to hook into a LATER point, you can create your own Railtie and provide an #initializer, which you can set to run whenever you want :) Yehuda Katz Developer | Engine Yard (ph

Re: [Rails-core] Rails.root returns a Pathname

2010-02-17 Thread Yehuda Katz
We're moving away from global locations for this stuff anyway. Your application object should have a paths object on it with the locations of each conceptual location :) Sent from my iPhone On Feb 17, 2010, at 2:55 PM, Nick Quaranto n...@quaran.to wrote: Just my two cents, leave the method as

Re: [Rails-core] Unnecessary exception raised in AS::Dependencies.load_missing_constant

2010-02-15 Thread Yehuda Katz
Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 On Mon, Feb 15, 2010 at 12:10 AM, Andrew White an...@pixeltrix.co.ukwrote: On 15 Feb 2010, at 01:32, Yehuda Katz wrote: What I'd like to understand is what the various cases are that could trigger this branch. In particular, I'm

Re: [Rails-core] Unnecessary exception raised in AS::Dependencies.load_missing_constant

2010-02-15 Thread Yehuda Katz
Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 On Mon, Feb 15, 2010 at 5:19 AM, Andrew White an...@pixeltrix.co.uk wrote: On 15 Feb 2010, at 12:11, Yehuda Katz wrote: I couldn't think of or find any reason for these cases to be different. My guess is that the behavior was added

Re: [Rails-core] Unnecessary exception raised in AS::Dependencies.load_missing_constant

2010-02-15 Thread Yehuda Katz
Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 On Mon, Feb 15, 2010 at 6:15 AM, Andrew White an...@pixeltrix.co.uk wrote: On 15 Feb 2010, at 13:31, Yehuda Katz wrote: I wouldn't. I consider Rails' lookup from disk to be an alternate form of constant lookup, and I'd want it to use

Re: [Rails-core] Unnecessary exception raised in AS::Dependencies.load_missing_constant

2010-02-14 Thread Yehuda Katz
to see what the original case was that caused the exception to be added in the first place. Presumably, it was added in order to catch a common (but infuriating) case of some kind. Any thoughts? Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 On Sun, Feb 14, 2010 at 4:46 PM, Ryan Kinderman

Re: [Rails-core] Rails 3.0 beta not tagged on GitHub

2010-02-07 Thread Yehuda Katz
Jonas, Little did you know, but tags are a non-renewable resource. We must conserve our tags or soon there will be none left! In all seriousness, the tag is pushed ;) Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 On Sun, Feb 7, 2010 at 7:46 AM, Jonas Nicklas jonas.nick

Re: [Rails-core] The state of mountable apps

2010-02-06 Thread Yehuda Katz
In Rails 3.0, the Engine class is the superclass of Application. We got pretty far along, but there are some kinks that need to be worked out in 3.x before the ideas Carl and I outlined are seamless. Keep an eye out! Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 On Sat, Feb 6, 2010

Re: [Rails-core] Rails 3 and Gem Plugins

2010-01-20 Thread Yehuda Katz
was around. Bottom line: there's a bunch of options right now, and the community should really converge on a few really good ones. I personally like putting the railtie in lib/my_lib.rb for gems that are only used as Rails plugins. Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 On Wed, Jan 20

[Rails-core] Closing in on Last Call for the Beta

2010-01-20 Thread Yehuda Katz
into Railties as well, but be aware that it's still undergoing rapid API refinement, and most obvious gaps are on the short list to resolve before the beta. So... if you have any patches for master, now's the time! Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 -- You received this message because

Re: [Rails-core] Rails 3 and Gem Plugins

2010-01-19 Thread Yehuda Katz
Yes. I am working on a blog post now, but the basic idea is that ActionController, ActiveRecord, etc. are all plugins now. So anything that they can do, you can do too. We just need to document how it works (if you're interested, check out the railtie.rb files in the various components). Yehuda

Re: [Rails-core] Re: Does rails ever automatically bring in a gem?

2010-01-12 Thread Yehuda Katz
Two troubleshooting steps: Can you paste the gem list --all on both machines? Can you puts caller in rexml/document on the machine that's pulling it in and paste it here? Thanks! Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 On Tue, Jan 12, 2010 at 7:41 AM, Pito pitosa...@gmail.com

Re: [Rails-core] Re: Does rails ever automatically bring in a gem?

2010-01-12 Thread Yehuda Katz
In order to properly troubleshoot, I need step 2, but try gem cleanup on both machines and see if it fixes it. Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 On Tue, Jan 12, 2010 at 11:55 AM, Pito Salas r...@salas.com wrote: Gems on the machine where the gem is not automatically pulled

Re: [Rails-core] Re: Does rails ever automatically bring in a gem?

2010-01-12 Thread Yehuda Katz
library...) Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 On Tue, Jan 12, 2010 at 2:52 PM, Pito Salas r...@salas.com wrote: The trick here is that rexml/document is only required inside this conditional (in core_ext/rexml.rb): unless (defined?(REXML::VERSION) ? REXML::VERSION

Re: [Rails-core] Question about coding style in Rails 3 source

2010-01-11 Thread Yehuda Katz
We use @_ivars in cases where an instance variable is to be used internally in a module that will be mixed into a user's class or a class that will be inherited by a user's class. For instance, we use @_ivars in ActionController::Base and modules mixed into ActionController::Base. Yehuda Katz

Re: [Rails-core] Description of rails current branches

2010-01-01 Thread Yehuda Katz
2-3-bench is no longer needed and can be removed. All 3.0 work is being done on master; some of that work is backported to the 2.3 series via 2-3-stable. Hope that helps, Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 On Fri, Jan 1, 2010 at 10:56 AM, Caio Chassot li...@caiochassot.com

Re: [Rails-core] Re: ActiveSupport for Rails 3

2009-12-15 Thread Yehuda Katz
to hear specific, concrete problems. I assure you I will take them seriously. Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 On Tue, Dec 15, 2009 at 8:54 PM, Ryan Bigg radarliste...@gmail.com wrote: So far, from my understanding, what you've said is that you want to use some parts

Re: [Rails-core] Re: ActiveSupport for Rails 3

2009-12-15 Thread Yehuda Katz
Can you file a ticket. Let's get this fixed! Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 On Tue, Dec 15, 2009 at 9:10 PM, Ryan Bigg radarliste...@gmail.com wrote: I understand. From what I could see, there wasn't an easy way to require I18n, such as in my example of requiring

Re: [Rails-core] Re: ActiveSupport for Rails 3

2009-12-15 Thread Yehuda Katz
That's PRECISELY what we've been doing. If there are cases of dependencies that are not appropriately required, please file a bug so we can get it fixed. Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 2009/12/15 Nicolás Sanguinetti godf...@gmail.com On Tue, Dec 15, 2009 at 11:54 PM

Re: [Rails-core] ActiveSupport for Rails 3

2009-12-15 Thread Yehuda Katz
I'd like to understand what scenario is implicating disk space here. Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 On Tue, Dec 15, 2009 at 9:21 PM, Mateo Murphy mateo.mur...@gmail.comwrote: On 14-Dec-09, at 4:26 PM, Yehuda Katz wrote: Are you otherwise concerned about the disk

Re: [Rails-core] ActiveSupport for Rails 3

2009-12-14 Thread Yehuda Katz
the disk space occupied by ActiveSupport? Please explain a bit more exactly what your requirements are that prevent the use of ActiveSupport in Rails 3. Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 On Sun, Dec 13, 2009 at 9:26 AM, botanicus stas...@101ideas.cz wrote: Hey guys, I'm

Re: [Rails-core] Why is ActiveResource::Base.site a class variable?

2009-12-13 Thread Yehuda Katz
Long-term, we want to try to get away from using global state like this as much as possible, but fixing it can sometimes open a thorny can of worms. Koz's solution, paired with a mutex or thread-local (for threadsafe scenarios) is a good workaround for now. Sent from my iPhone On Dec 13, 2009,

Re: [Rails-core] What does rails_xss in Rails 2.3.5 mean for plugin/gem authors?

2009-12-02 Thread Yehuda Katz
Ideally, you'd be able to do: require rails_xss ... use html_safe here ... Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 On Wed, Dec 2, 2009 at 11:41 AM, Mislav Marohnić mislav.maroh...@gmail.comwrote: On Wed, Dec 2, 2009 at 20:40, Mislav Marohnić mislav.maroh...@gmail.comwrote

[Rails-core] Re: 1.9 Compat and merging mail gem into ActionMailer

2009-10-31 Thread Yehuda Katz
welcome. -- http://lindsaar.net/ Rails, RSpec and Life blog -- Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Core group. To post

[Rails-core] Re: 1.9 Compat and merging mail gem into ActionMailer

2009-10-31 Thread Yehuda Katz
to figure out what the abstraction point really was. Are you available on GTalk? I'm wyc...@gmail.com. I'd love to chat. -- Yehuda On Sun, Nov 1, 2009 at 12:19 AM, Mikel Lindsaar raasd...@gmail.com wrote: On Sun, Nov 1, 2009 at 9:56 AM, Yehuda Katz wyc...@gmail.com wrote: This sounds really cool

[Rails-core] Re: ActionMailer Outside Rails

2009-10-06 Thread Yehuda Katz
-2.3.4/lib/ action_mailer/base.rb:437:in `template_root=' from ./ffl.rb:66:in `main' -- Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails

[Rails-core] Re: Using ActionController::Base#performed?

2009-09-14 Thread Yehuda Katz
Just FYI, performed? Is replaced in 3.0 with a check of self.response_body. Sent from my iPhone On Sep 14, 2009, at 11:46 AM, Chris Didyk cdi...@gmail.com wrote: Hello, I'm curious about the performed? method in ActionController::Base. It's not documented, but I've found it useful in a

[Rails-core] Re: Rails internals documentation guides

2009-09-12 Thread Yehuda Katz
of hacking knowing you basically did ... nothing really. I would like to know what is the Rails core team opinion about that. Beware - my opinion is just from a user struggling to understand Rails, not anyone from the core team. Cheers -- Cezary Bagiński -- Yehuda Katz Developer

[Rails-core] Re: Non JavaScript dependent scaffolding solution for record deletion

2009-08-10 Thread Yehuda Katz
I am in favor of a standard delete action, analagous to new and edit. I can't think of a good reason not to have it--it shows good practice and isn't exactly a new concept. We have new and edit as HTML precursor actions for the POST and PUT verbs, why not delete as HTML precursor for DELETE.

[Rails-core] Re: Non JavaScript dependent scaffolding solution for record deletion

2009-08-10 Thread Yehuda Katz
MatthewRudy wrote: I think this is something that is always annoying. Namely I have to reinvent a convention to handle this. Something like pre_delete with a GET - this is just a proper delete form and delete with a DELETE - this does the delete but I think we deserve to have this baked

[Rails-core] Re: Non JavaScript dependent scaffolding solution for record deletion

2009-08-10 Thread Yehuda Katz
Pratik wrote: -1. +2 On Mon, Aug 10, 2009 at 12:39 PM, Yehuda Katzwyc...@gmail.com wrote: I am in favor of a standard delete action, analagous to new and edit. I can't think of a good reason not to have it--it shows good practice and isn't exactly a new concept. It makes

[Rails-core] Survey Says: Partial Variables

2009-08-10 Thread Yehuda Katz
Hey guys, I'm doing some work on partials and am trying to figure out what the usage of the variables that are currently assigned is. Consider a case where you have a partial named _user.html.erb. In Rails 2.3, the following variables are assigned: * user * options[:as] if

[Rails-core] Re: Question about Rails 2.x behavior

2009-08-09 Thread Yehuda Katz
Kieran P wrote: Hey, Yes, it should assume a file of the same type, and raise if there isn't. i.e. index.html.erb renders 'example' , should find example.html.erb or raise Same with xml: index.xml.erb renders 'example' , should find example.xml.erb or raise But overwrites

[Rails-core] Re: Question about Rails 2.x behavior

2009-08-09 Thread Yehuda Katz
Mislav Marohnić wrote: On Sun, Aug 9, 2009 at 05:19, Yehuda Katz wyc...@gmail.com mailto:wyc...@gmail.com wrote: In Rails 2.x, if you have an XML template, and try to render a template that does not have an XML version, but does have an HTML version, ... Am I the only one

[Rails-core] LH Ticket #1089: Feedback Please

2009-08-08 Thread Yehuda Katz
Hey guys, There's a patch on the tracker right now that adds support for polymorphic routes handling collection URLs via the model class. I like this idea (in fact, we had something like it in Merb), but want to make sure it won't break any existing assumptions that people are making. If I

[Rails-core] Re: Need ActiveRecord bind variable support; offering effort/patches

2009-08-08 Thread Yehuda Katz
I discussed this some with dbussink, who maintains DO. One of the problems is that you'd have to be able to convert ? into the native format, while avoiding ? in Strings. So for instance: SELECT * from foo where name=? and id = ? This is a simple case--it can be a lot trickier than that. One

[Rails-core] Question about Rails 2.x behavior

2009-08-08 Thread Yehuda Katz
In Rails 2.x, if you have an XML template, and try to render a template that does not have an XML version, but does have an HTML version, it will be rendered. XML and HTML are just examples; this is true for any two mime types. Is this behavior important? First of all, I'm not sure this is

[Rails-core] Re: Fix for not being able to read a cookie set mid-request

2009-07-21 Thread Yehuda Katz
for this and assign it to me please? I'll be looking after 2-3-stable until 3.0 ships, so I'll be sure to have it wrapped up for 2.3.4 -- Cheers Koz -- Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 --~--~-~--~~~---~--~~ You received this message

[Rails-core] Re: Rails 3 - Javascript/Ajax - date-remote=true

2009-05-26 Thread Yehuda Katz
that are submitted via the return key? This is why I thought that you, at least for forms, would use the traditional submit event, which would require a DOM scan (and unfortunately for each new DOM elements updated via Ajax, too). Christian -- Yehuda Katz Developer | Engine Yard (ph

[Rails-core] Re: Custom Array-like object for partial

2009-04-18 Thread Yehuda Katz
: if partial_path.respond_to?(:each) and not String === partial_path Are there use cases where models themselves will respond to each, or where this approach could otherwise backfire? -- Yehuda Katz Developer | Engine Yard (ph) 718.877.1325

[Rails-core] Re: exceptions while in views

2009-04-18 Thread Yehuda Katz
and wrapping them in a single error class does not only confuse rescue_from, but also Hoptoad and possibly other exception tracker applications that try to group similar errors together. -- Yehuda Katz Developer | Engine Yard (ph) 718.877.1325

[Rails-core] Re: Tests and the Rails 3 effort

2009-04-16 Thread Yehuda Katz
My apologies for the delay in responding. I'm a bit new to all of this. I'll try to explain what's going on exactly. There are basically two kinds of changes that Carl and I have been making: 1) Refactoring of existing code. For the most part, the existing tests have held up reasonably well.

[Rails-core] Re: Nomination for Commit Rights

2007-11-07 Thread Yehuda Katz
for listening! -- Yehuda On Nov 6, 4:24 pm, Yehuda Katz [EMAIL PROTECTED] wrote: DHH, I honestly just threw in some additional names so it didn't look like I was gunning for a particular individual. That said, I stand by my original nomination of Jeremy, and did including patches, and will put

[Rails-core] Re: Nomination for Commit Rights

2007-11-06 Thread Yehuda Katz
. [EMAIL PROTECTED] wrote: On Tue, Nov 06, 2007 at 07:45:13PM -, Yehuda Katz wrote: I just wanted to nominate Jeremy McAnally for commit rights to Rails. While most of his patches are documentation, he has done significant, coton the documentation (including writing pretty much all

[Rails-core] Re: Nomination for Commit Rights

2007-11-06 Thread Yehuda Katz
On another note, lifo, Form, and manfred-s might be considered as well. Looking forward, Yehuda On Nov 6, 1:14 pm, Yehuda Katz [EMAIL PROTECTED] wrote: Marcel, My nomination came as a result of a comment by DHH yesterday that people who have consistently contributed good work be given

[Rails-core] Re: Nomination for Commit Rights

2007-11-06 Thread Yehuda Katz
internationalization, Action Mailer reform, etc). And we should probably run 1 thread per person. And of course, there's no guarantee that a nomination automatically leads to core membership. But it'll certainly shine a bright light on the person. -- Yehuda Katz Web Developer | Procore Technologies (ph