Re: [Rails-core] [ActiveRecord] feature request - QueryMethods method that augments the select clause.

2019-11-15 Thread Daniel Heath
Sorry, I was being unclear there. I think it might be sensible to convert .select(“users.*, sum(baz))” to the expanded form on the ruby side using the column cache. That way you get the functionality you want without introducing a new API. Thanks, Daniel Heath > On 16 Nov 2019, at 12:43

Re: [Rails-core] [ActiveRecord] feature request - QueryMethods method that augments the select clause.

2019-11-14 Thread Daniel
I like it, but I don't think it meets the criteria for inclusion in rails because it:  * Could easily be a gem.  * Is not meaningfully shorter.  * Requires the next person to read this code to know what this method does. On 11/15/19 3:03 AM, Andrew Kaspick wrote: +1 On Thu, Nov 14, 2019

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

2019-11-04 Thread Daniel
h. I think it's a little more elegant and probably more efficient than calculating a sum when it comes to really large collections. Starting work on a pull request, but welcome other ideas/directions/considerations. On Wed, Oct 30, 2019 at 6:19 PM Daniel Heath wrote: I think it’s worth cons

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

2019-10-30 Thread Daniel Heath
I think it’s worth considering implementing per database, as the major ones all have something that’ll work and the keys don’t need to be stable across different data store implementations. Thanks, Daniel Heath > On 31 Oct 2019, at 6:17 am, Aaron Lipman wrote: > >  > Thanks

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

2019-10-28 Thread Daniel Heath
The full collection could be millions of records. Fetching the ids to hash might not be an option either, unless they can be hashed on the database side. Thanks, Daniel Heath > On 29 Oct 2019, at 4:22 am, Aaron Lipman wrote: > >  > Hi Marc & Richard, > > I'd cat

Re: [Rails-core] [Feature] Zero argument for pluralize text helper

2019-10-02 Thread Daniel Heath
This doesn’t work for many languages, and only works for English if you format your copy to match (ex: “you don’t have any bookmarks” vs “you have no bookmarks”) Thanks, Daniel Heath > On 3 Oct 2019, at 5:49 am, Marc Köhlbrugge wrote: > >  > I wonder how many Rails apps use i1

[Rails-core] Allow stylesheet_packs_with_chunks_tag to fail silently if a chunk has JS but no CSS

2019-08-02 Thread Daniel Heath
ally. If rails adopted this alternative implementation, it would be easy to set a rule of "All packs passed to javascript_packs_with_chunks_tag must also be passed to stylesheet_packs_with_chunks_tag". I admin this is a relatively small improvement, but it's also a very low-ri

Re: [Rails-core] Native support for OpenTracing

2019-03-19 Thread 'Daniel Schierbeck' via Ruby on Rails: Core
Awesome! Are you working on other OC integrations? On Tue, 19 Mar 2019 at 16.41, Jeremy Daer wrote: > And merged (targeting Rails 6.0.0.beta4) 😊 > > On Fri, Oct 26, 2018 at 7:56 PM Jeremy Daer wrote: > >> Nice! 👍 >> >> On Fri, Oct 26, 2018 at 2:51 AM 'D

Re: [Rails-core] [ActiveRecord] [Feature Proposal] Common Table Expression support

2019-01-15 Thread Daniel Heath
rge are the only places anyone not working on CTEs would notice that this change exists. Thanks, Daniel Heath On Wed, Jan 16, 2019, at 11:58 AM, Rafael Mendonça França wrote: > Cool! I think the hard work is already done. But I still find it hard > to justify this in the framework. It is a fea

Re: [Rails-core] [ActiveRecord] [Feature Proposal] Common Table Expression support

2019-01-15 Thread Daniel Heath
r the number of users affected? Thanks, Daniel Heath On Wednesday, January 16, 2019 at 11:21:42 AM UTC+11, Rafael Mendonça França wrote: > > Thank you for the feature proposal. It doesn't seem to be difficult to > implement this as a gem given most of the APIs you need in able to &g

[Rails-core] [ActiveRecord] [Feature Proposal] Common Table Expression support

2019-01-15 Thread Daniel Heath
e).where(id: {post_ids: :post_id}) Would a patch supporting this syntax be accepted? Thanks, Daniel Heath -- 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

Re: [Rails-core] Native support for OpenTracing

2018-10-26 Thread 'Daniel Schierbeck' via Ruby on Rails: Core
First PR is up: https://github.com/rails/rails/pull/34305 On Tue, Oct 23, 2018 at 4:33 AM Jeremy Daer wrote: > On Mon, Oct 22, 2018 at 9:56 AM 'Daniel Schierbeck' via Ruby on Rails: > Core wrote: > >> On Fri, Oct 19, 2018 at 10:15 PM Daniel Azuma wrote: &g

Re: [Rails-core] Native support for OpenTracing

2018-10-22 Thread 'Daniel Schierbeck' via Ruby on Rails: Core
On Fri, Oct 19, 2018 at 10:15 PM Daniel Azuma wrote: > Hi folks, > > Thought I'd jump in here as the engineer who has done most of the > implementation on the opencensus gem so far. Ruby support in OpenCensus is > currently a bit behind other languages—we don't yet ha

Re: [Rails-core] Native support for OpenTracing

2018-10-19 Thread Daniel Azuma
Please don't hesitate to reach out to me. There also isn't a Datadog exporter yet for Ruby (that I know of), but I'd love to help get one started up. Daniel Azuma -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group

Re: [Rails-core] Native support for OpenTracing

2018-10-19 Thread 'Daniel Schierbeck' via Ruby on Rails: Core
On Thu, Oct 18, 2018 at 9:24 PM Jeremy Daer wrote: > On Thu, Oct 18, 2018 at 2:52 AM 'Daniel Schierbeck' via Ruby on Rails: > Core wrote: > >> Looks like OpenCensus already has support for development mode UIs, >> currently only for Java and Go though: >>

Re: [Rails-core] Native support for OpenTracing

2018-10-18 Thread 'Daniel Schierbeck' via Ruby on Rails: Core
Looks like OpenCensus already has support for development mode UIs, currently only for Java and Go though: https://opencensus.io/core-concepts/z-pages/ Have you deployed an OpenCensus integration to production? At least the metrics part looks pretty advanced, maybe too much so. Cheers, Daniel

Re: [Rails-core] Native support for OpenTracing

2018-10-18 Thread 'Daniel Schierbeck' via Ruby on Rails: Core
On Wed, Oct 17, 2018 at 7:26 PM Jeremy Daer wrote: > Hey Daniel, > > Absolutely! We're looking at OpenCensus (https://opencensus.io > <https://opencensus.io>) integration, > which seems to be leapfrogging OpenTracing in standardization and adoption. > So now there a

[Rails-core] Native support for OpenTracing

2018-10-17 Thread &#x27;Daniel Schierbeck' via Ruby on Rails: Core
to hear your thoughts on this. Cheers, Daniel Schierbeck -- 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 an email to rubyonrails-core+unsubscr...@googl

Re: [Rails-core] ActiveRecord raw result method.

2018-09-04 Thread Daniel Schepers
* bump * I think this would be a useful feature to have On Monday, March 14, 2016 at 1:45:51 PM UTC-5, lingceng wrote: > > I know it's been a long time from the last reply. > But I really want some method return raw results in ActiveRecord. > > Actually I use ActiveRecord as a sql builder for some

[Rails-core] [Proposal][Change request] Update mail_to arguments to be similar like link_to

2016-10-01 Thread Daniel Dimitrov
ht now. I propose to change it so it will work like that: mail_to("s...@email.com") => s...@email.com mail_to("link text", "s...@email.com") => link text What you think? Do you have same feeling about it? Thanks. Daniel -- You received this message because

[Rails-core] ActiveRecord should have a create-like method that throws 400 on invalid record

2016-02-17 Thread Daniel Finlay
I'd like to propose and maybe start on a patch that adds a new ActiveRecord method, maybe named `make`, that behaves exactly like `create`, except in the case of failed validations, it throws an `ActiveRecord::BadRequest` error, that the controller will automatically convert into a `400` respons

Re: [Rails-core] Reducing ActionCable dependencies?

2016-01-07 Thread Daniel Searles
Hey Mike, I would love to follow along and help out anyway I can with this. I'm unsure how I can go about doing that as I am still getting my feet wet with developing on the Rails core. - Daniel On Tuesday, January 5, 2016 at 3:59:58 PM UTC-8, Rafael Mendonça França wrote: > > Mi

[Rails-core] Re: Change the thread connection

2015-01-23 Thread Daniel Loureiro
Ok, I got it. But I had to make a little hack on "retrieve_connection" to achieve this: module ActiveRecord module ConnectionAdapters class ConnectionHandler def retrieve_connection(klass) #:nodoc: pool = retrieve_connection_pool(klass) raise ConnectionNotEstablished,

[Rails-core] Change the thread connection

2015-01-22 Thread Daniel Loureiro
How can I change the connection of one thread? I want do that: # slow query process at background Thread.new do 10.times { User.first.update_attributes(some_field: (rand * 100).to_i) } end # more slow query process 10.times { User.first.update_attributes(some_field_2: (rand * 100).to_i

Re: [Rails-core] Find an ActiveRecord::Error in an object by attribute name and error type.

2014-12-05 Thread Daniel Gomez Sierra
ow the why of this behaviour? On Friday, December 5, 2014 7:02:32 PM UTC-5, Daniel Gomez Sierra wrote: > > Damn! I didn't see that one. Thanks Carlos. > > On Friday, December 5, 2014 6:30:30 PM UTC-5, Carlos Antonio da Silva > wrote: >> >> You sh

Re: [Rails-core] Find an ActiveRecord::Error in an object by attribute name and error type.

2014-12-05 Thread Daniel Gomez Sierra
gt; > Hope that helps. > > On Fri, Dec 5, 2014 at 5:54 PM, Daniel Gomez Sierra > wrote: > >> Is there a way to know if a record has an error with a certain attribute >> and error type after validating it? I was wondering if there is a way to >> accompli

[Rails-core] Find an ActiveRecord::Error in an object by attribute name and error type.

2014-12-05 Thread Daniel Gomez Sierra
Is there a way to know if a record has an error with a certain attribute and error type after validating it? I was wondering if there is a way to accomplish this task by using something similar as the ActiveModel::Errors.get method but passing two arguments instead of one. For instance: Acti

[Rails-core] New `console` option for a "protected" session

2014-12-05 Thread Daniel Treacy
Whilst it is asking for trouble, many developers (myself included) cannot resist the occasional temptation to drop into a Rails console in a production environment and perform data mods on production data. In the spirit of the current "sandbox" option available in the Rails console, what do you

Re: [Rails-core] Can we make nil[:a][:b] simply return nil?

2014-07-27 Thread Daniel Evans
. > To post to this group, send email to rubyonrails-core@googlegroups.com. > Visit this group at http://groups.google.com/group/rubyonrails-core. > For more options, visit https://groups.google.com/d/optout. > -- Daniel Evans -- You received this message because you are subscribed

Re: [Rails-core] Simplifying `rails new`

2014-06-10 Thread Daniel Condomitti
On Tuesday, June 10, 2014 at 3:13 PM, Pier-Olivier Thibault wrote: > I agree with Michael with 2 and 4. > > > > 2. Combine `boot.rb` and `environment.rb`. I'll be the first to admit I > > don't understand the Rails boot process as well as I wish, and there may be > > implications to this I d

Re: [Rails-core] Re: Why last doesn't return an ActiveRecord::Relation

2013-07-19 Thread Daniel Evans
"last(5)" is, with regard to efficiency, equivalent to "limit(5).to_a". On Fri, Jul 19, 2013 at 2:28 PM, Andrew Vit wrote: > "first" and "last" have always returned an instance of the model. These > are meant to be the final method that you call on a relation, to get the > result. If you call "

Re: [Rails-core] Changing the way Rails renders views

2013-05-31 Thread Daniel Schierbeck
this group, send email to rubyonrails-core@googlegroups.com. > Visit this group at http://groups.google.com/group/rubyonrails-core?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Med venlig hilsen Daniel Schierbeck -- You received this messa

Re: [Rails-core] Changing the way Rails renders views

2013-05-30 Thread Daniel Schierbeck
Actually, the assigns didn't seem to be a major issue. I'm struggling a bit with the output buffering though. Can I start a Work In Progress PR on GitHub? I have a few ideas for how to proceed, but I'd like to get some feedback soon :-) On Wednesday, May 29, 2013 8:17:31 P

Re: [Rails-core] Changing the way Rails renders views

2013-05-29 Thread Daniel Schierbeck
That's my biggest worry as well. I'll give it a shot - I have an idea for how I can cut the problem into smaller steps. On Wednesday, May 29, 2013 7:38:13 PM UTC+2, Jeremy Kemper wrote: > > Go for it, Daniel! > > I think you'll find that handling references to local &a

[Rails-core] Changing the way Rails renders views

2013-05-29 Thread Daniel Schierbeck
n multiple locations. I'm not sure how easy it would be to retrofit this on top of ERB, but it should be possible. I'd be willing to put in the work, I just want to know if this is something Core is interested in. Cheers, Daniel (@dasch) -- You received this message because you

[Rails-core] Re: Improving the ActiveRecord query API

2012-12-11 Thread Daniel Azuma
ature-locked at this point, then Squeel should be at the top of the consideration list for 4.1. Daniel Azuma Author of rgeo and activerecord-postgis-adapter -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To view this discussio

[Rails-core] Re: [ANN] Rails 3.2.8.rc2 has been released

2012-08-03 Thread Daniel Evans
Our test suite (rspec/capybara+webkit/jasmine) which was broken by 3.2.7 is working perfectly in 3.2.8.rc2. Thanks! --Daniel Evans On Friday, August 3, 2012 8:29:57 AM UTC-6, Santiago Pastorino wrote: > > Hi everyone, > > Rails 3.2.8.rc2 has been released. If no regressions are f

Re: [Rails-core] Scopes with OR and AND optional chainity discussion

2012-06-21 Thread Daniel Vázquez
because you are subscribed to the Google Groups >> "Ruby on Rails: Core" group. >> To view this discussion on the web visit >> https://groups.google.com/d/msg/rubyonrails-core/-/vMihSC-FuxgJ. >> >> To post to this group, send email to rubyonrails-core@googlegroups.com. &

[Rails-core] Include a javascript runtime when generate the app

2011-11-17 Thread Daniel Lopes
Hello, I'm opening this thread in order to discuss a frustration that I have since Rails 3.1 I am teacher in private courses and university in Brazil and my main language is Ruby (along with Rails for web classes). I have more than a thousand students and I'm starting to know very well which part

[Rails-core] Re: Running tests on master

2011-10-10 Thread Mieczysław Daniel Dyba
Looks clean on travis-ci -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-core/-/s4_97Bi_HkYJ. To post to this group, send email to rubyonrails-core@goog

[Rails-core] Attempt to change Commands to Rails::Commands to avoid conflict with Rake

2011-10-10 Thread Mieczysław Daniel Dyba
Hello, I learned that my pull request that was part of Rails Issue #1866 wasn't incorporated into the Rails 3-0 stable branch. So I'm creating the fix again, but I decided to include a test to ensure that it works properly. I created a sample Rails application called SampleIssue1866. In the Ge

Re: [Rails-core] Hacking on performance?

2011-09-27 Thread Daniel Schierbeck
Hi Jay, I think perusing Django's API would be a good first start. They handle things quite differently from Rack. Here's a small gist of a sample API: https://gist.github.com/1185778 Cheers, Daniel On 27/09/2011, at 01.18, Jay Levitt wrote: > @tenderlove talked at RailsConf abo

Re: [Rails-core] Re: Performance of "delegate"

2011-08-29 Thread Daniel Schierbeck
On Mon, Aug 29, 2011 at 6:34 PM, matthewrudyjac...@gmail.com wrote: > On Monday, August 29, 2011 11:59:56 AM UTC+1, Daniel Schierbeck wrote: >> >> 3. `*args` contraction (we must build an array that is just GC'd) >> 4. Splatting the args back to the `__send__` >&g

[Rails-core] Re: Performance of "delegate"

2011-08-29 Thread Daniel Schierbeck
Okay, I've added a pull request targeting 3-1-stable: https://github.com/rails/rails/pull/2736 Please have a look. Cheers, Daniel Schierbeck -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group

Re: [Rails-core] Re: Performance of "delegate"

2011-08-29 Thread Daniel Schierbeck
The deprecation stuff is happening at https://github.com/dasch/rails/tree/delegate-deprecation Comments are welcome - the code can be tricky. On Mon, Aug 29, 2011 at 3:34 PM, Daniel Schierbeck wrote: > I've begun work on the patch against 3-1-stable, but it's not trivial. >

Re: [Rails-core] Re: Performance of "delegate"

2011-08-29 Thread Daniel Schierbeck
I've begun work on the patch against 3-1-stable, but it's not trivial. For one, simply evaling target.method=(*args, &block) throws a syntax error. I'll keep working on it. On Mon, Aug 29, 2011 at 2:42 PM, Jon Leighton wrote: > On Mon, 2011-08-29 at 14:16 +0200, D

Re: [Rails-core] Re: Performance of "delegate"

2011-08-29 Thread Daniel Schierbeck
@Jon: I've updated my patch at https://github.com/rails/rails/pull/2733/files The new version should play well with []= methods. If the change is accepted I will be perfectly willing to implement a deprecation patch for 3.1. Should I begin now, or is the issue still contested? Cheers, D

Re: [Rails-core] Re: Performance of "delegate"

2011-08-29 Thread Daniel Schierbeck
@Jon: I could change the implementation to check `args.length` and raise ArgumentError if the result is greater than 1. But wouldn't it suffice to simply define the writer methods with only one argument? @Xavier: I think users perceive `delegate` as a shorthand for: def foo @target.foo en

[Rails-core] Re: Performance of "delegate"

2011-08-29 Thread Daniel Schierbeck
@jonleighton thanks for chiming in. I really believe that the basic constructs provided by ActiveSupport should uphold the rules of OOP - if you need to delegate to a private method nothing is stopping you from going the manual route. I seem to have fixed the performance issues, although I complet

[Rails-core] Performance of "delegate"

2011-08-29 Thread Daniel Schierbeck
ckwards compatibility, assuming people actually use `delegate` for such a nefarious purpose. I hope people will be interested in discussing this topic, as I think `delegate` is an important part of the "plumbing" of Rails, and deserves all the optimization we can muster. This is especial

Re: [Rails-core] Searchable serialized fields

2011-04-10 Thread Daniel N
This kind of ad-hoc fields, and nested searching is well suited to mongo if you can use it... On 11 April 2011 16:47, Andrew Kaspick wrote: > If you serialize as xml instead of yaml, you can make use of xml query > functions if your database supports them... mysql and postgres do at > least. > >

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

2010-12-08 Thread Daniel Morrison
Personally, I have no reason to use plugins anymore. Bundler has made this a moot point. However, I spend a lot of time teaching Rails, and (unfortunately) many people don't have git installed, and it frankly doesn't make sense for them to just for the :git option in a Gemfile. I think we need a q

Re: [Rails-core] eclipse

2010-12-02 Thread Daniel Vilar
I am trying it now and running perfectly. what IDE do you use? Att, CARDOSO, Daniel Fernandes Vilar. Developing Mind Systems. And now the weak say I have strength. 2010/12/1 Gustavo de Sá Carvalho Honorato > Have you tried Aptana RadRails? I'm not sure if it has rails 3 support. &g

[Rails-core] eclipse

2010-11-29 Thread Daniel Vilar
does someone know some plugin that run into eclipse IDE with rails 3? Att, CARDOSO, Daniel Fernandes Vilar. Developing Mind Systems. And now the weak say I have strength. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.

[Rails-core] Tab-completion in Rails 3

2010-06-20 Thread Daniel Schierbeck
I'd like to see tab completion introduced for the commands -- while the single-character aliases are nice, tab-completing is in my muscle memory, as I suspect it is in many others, too. I've written a very rudimentary completion script which merely completes the command name in Bash: http://gist.g

Re: [Rails-core] Default JavaScript library

2010-05-28 Thread Daniel Schierbeck
I think Rails 3.1 would be the appropriate target. Daniel -- 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, sen

Re: [Rails-core] Default JavaScript library

2010-05-27 Thread Daniel Schierbeck
are available for the major frameworks. Cheers, Daniel On Thu, May 27, 2010 at 10:59 PM, Ryan Bigg wrote: > I would not go changing this in a minor release. Major or bust. > > Ryan Bigg / Radar > > On 28/05/2010, at 1:58, Norman Clarke wrote: > >> On Thu, May 27, 201

Re: [Rails-core] Default JavaScript library

2010-05-27 Thread Daniel Schierbeck
Xavier, I for one never use jRails -- in fact, neither do most of the rails devs i know. We do, however, use jQuery. The JavaScript helpers in Rails 2.3 were rather ugly, from a jQuery point of view, which probably explains why not that many people felt like using jRails. Daniel On Thu, May 27

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

2010-05-25 Thread Daniel Schierbeck
between different components becomes vast. Unless this is something someone wants to maintain, I suggest removing the non-default bindings from the Rails repo and putting it in a plugin. Cheers, Daniel Schierbeck On Tue, May 25, 2010 at 5:28 PM, Paul Sponagl wrote: > -/+1 > > yes -

[Rails-core] Default JavaScript library

2010-05-24 Thread Daniel Schierbeck
it's still the best choice. Best regards, Daniel Schierbeck -- 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 th

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

2010-04-05 Thread Daniel Schierbeck
I can see that -- it's sad that we have this great functionality built right into Ruby, yet we're unable to take advantage of it. Well, nothing to do about that. Cheers, Daniel Schierbeck On Mon, Apr 5, 2010 at 1:23 AM, Michael Koziarski wrote: >> That seems reasonable. Perh

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

2010-04-04 Thread Daniel Schierbeck
That seems reasonable. Perhaps the tainting could be moved higher up the hierarchy, the ActiveRecord itself? All getters would then return tainted strings. Would that not suffice? Cheers, Daniel Schierbeck On Sun, Apr 4, 2010 at 5:41 PM, Mike Gunderloy wrote: > NzKoz's original note o

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

2010-04-04 Thread Daniel Schierbeck
That's a valid concern, but I think trying it out is the best approach -- then we'll se if any problems arise. Having a #html_safe wrapper around the tainting also yields some flexibility. Cheers, Daniel Schierbeck On Sun, Apr 4, 2010 at 5:26 PM, Jeremy Kemper wrote: > On Sun, Apr

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

2010-04-04 Thread Daniel Schierbeck
erful) within Ruby itself. Should I cook up a patch for this? Cheers, Daniel Schierbeck On Sun, Apr 4, 2010 at 4:52 PM, Jeremy Kemper wrote: > On Sun, Apr 4, 2010 at 7:37 AM, Daniel Schierbeck > wrote: >> On Sun, Apr 4, 2010 at 3:54 PM, Jeremy Kemper wrote: >>> On S

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

2010-04-04 Thread Daniel Schierbeck
Just out of curiosity, couldn't you use String#tainted? to check whether the string was a literal or not? Cheers, Daniel Schierbeck On Sun, Apr 4, 2010 at 3:54 PM, Jeremy Kemper wrote: > On Sun, Apr 4, 2010 at 4:51 AM, michael.hasenst...@googlemail.com > wrote: >> Hi, >>

[Rails-core] Re: Testing Rails Engine plugins with Rails 3

2010-02-15 Thread Daniel Guettler
ad is acceptable and it has worked well for the past couple years. Daniel On Feb 15, 10:48 am, Venue Driver wrote: > Hello Anuj, thank you for your help. > > My problem is: how do I get the Rails app that's in test/rails_root to > load the plugin?  The Rails app is inside of the plu

[Rails-core] Re: "Only get, put, and delete requests are allowed" on an XML request... why??

2009-09-17 Thread Daniel Schierbeck
Hi, First of all, this is the "core" group, meant for discussions on the development and direction of Rails itself, not a help forum -- there's a dedicated group for that purpose. Second, you should issue your POST to "/things", not "/things/1". Cheers, Dani

[Rails-core] Re: Getting version 3

2009-05-23 Thread Daniel Schierbeck
nd pulling from that branch is implicitly done with the tracked remote branch, without needing specification; e.g. git checkout -tb foo some-remote/bar git commit -am "Implement awesomeness" git push # pushes to some-remote/bar Best regards, Daniel Schierbeck On Sat, Ma

[Rails-core] to_yaml and association_proxy

2009-03-04 Thread Daniel Guettler
Hi, just a question / issue I came across when calling to_yaml on an object which defines an association and called a method on this association before the to_yaml. E.g. assume the following classes: class Partner < ActiveRecord::Base has_many :users end class User < ActiveRecord::Base def

[Rails-core] Re: Question about _pick_template and template_file_extension

2009-01-26 Thread Daniel Guettler
ion. > > Seems like a legit bug. Could you please wrap this up in a patch and > create a LH ticket. > > I think files w/o an extension (in a view path) should be renderable > without a template handler. I don't think they should be erb > processed. > > On Jan

[Rails-core] Question about _pick_template and template_file_extension

2009-01-25 Thread Daniel Guettler
template_file_name}.# {template_format}"] template elsif template_file_extension && template = self.view_paths["# {template_file_name}.#{template_file_extension}"] template elsif template = self.view_paths[template_file_name] template Thanks, Daniel --~--~-~--~~~--

[Rails-core] Re: Should Inflector do consider accented vowels while underscoring?

2009-01-03 Thread Daniel Schierbeck
Perhaps an incremental solution would be better -- add support for Central European characters first and see if there's a need for a more elaborate solution. Only thing I have against this is that I believe all code should be written in English (I'm Danish myself). Cheers, Daniel On

[Rails-core] Re: Git repos in vendor/gems

2008-11-25 Thread Daniel Schierbeck
I'm currently implementing some infrastructure for managing plugins, but if could easily support this, too. The relevant parts are in railties/lib/plugin_manager. On Nov 25, 11:27 am, Cristi Balan <[EMAIL PROTECTED]> wrote: > On 25 Nov 2008, at

[Rails-core] PluginManager: An extensible plugin management API for Rails

2008-11-22 Thread Daniel Schierbeck
cleanup in .gitmodules). Subversion externals is planned. The progress will be tracked in Lighthouse[1], and the code is residing in a GitHub branch[2]. Again, all comments are welcome. Cheers, Daniel Schierbeck [1] <http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/ tickets/1436>

[Rails-core] Re: What is the documentation strategy?

2008-11-01 Thread Daniel Schierbeck
Okay, i guess that's as good as it can get then -- there will be links to that from rubyonrails.org, hopefully? Cheers, Daniel On Oct 31, 3:37 pm, "Michael Koziarski" <[EMAIL PROTECTED]> wrote: > On Fri, Oct 31, 2008 at 3:03 PM, Daniel Schierbeck > > <[EMAIL

[Rails-core] Re: What is the documentation strategy?

2008-10-31 Thread Daniel Schierbeck
together? It doesn't have to be right now, and I'm not saying that you guys should do it (I'd be more than happy to help if there was agreement on a goal,) but we really need a canonical, high-quality starting point for people learning Rails. Cheers, Daniel On Oct 30, 9:30 pm, "J

[Rails-core] Re: What is the documentation strategy?

2008-10-30 Thread Daniel Schierbeck
gh-quality content would benefit from being edited into a coherent manual, that can be read from start to finish. Furthermore, the reference documentation (rdoc) would benefit from having links to the relevant chapters of such a manual. Cheers, Daniel On Oct 30, 1:01 pm, "Michael Koziarski&quo

[Rails-core] What is the documentation strategy?

2008-10-30 Thread Daniel Schierbeck
depth manual, akin to the ones offered by PHP and Django. The guides provide a great foundation for such a manual, essentially being a chapter each (although editing and streamlining would be necessary.) Is there a strategy on this area? Should there be? Best regards, Daniel Schie

[Rails-core] Re: Request for Review: Make it possible to prefix delegate methods

2008-10-12 Thread Daniel Schierbeck
eter-and- forwardable.html> Best regards Daniel Schierbeck On Oct 12, 7:31 pm, "Andrew Kaspick" <[EMAIL PROTECTED]> wrote: > Why wouldn't you just do obj.client.name and obj.client.address if > you're looking to keep some context in the names? > > On Sa

[Rails-core] Request for Review: Make it possible to prefix delegate methods

2008-10-12 Thread Daniel Schierbeck
I've submitted a patch to Lighthouse which makes it possible to prefix delegation methods, i.e.: delegate :name, :address, :to => :client, :prefix => true Which would create the methods #client_name and #client_address. It's also possible to give a custom prefix, e.g. :customer. Could I get s

[Rails-core] Re: HTTP Cache

2008-06-09 Thread Daniel Cursino
, it's better the declarative style on the top of my controller: http_cache :index, :show, :list, :common_options =>... And it's more DRY in comparison with setting expires_in in all actions. I hope that proves my point! =) Daniel. On 9 jun, 13:30, "Lisa Seelye" &l

[Rails-core] HTTP Cache

2008-06-09 Thread Daniel Cursino
/josevalim/easy-http-cache/tree/master Just wondering, any chance of such feature enter into edge? Regards, Daniel Cursino. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to

[Rails-core] Re: Random in ActiveRecord

2008-02-13 Thread Daniel Morrison
x27;t be in core. The issues are a bit sticky and you could easily make a DB crawl. However, in some cases it may be ok. git: http://github.com/collectiveidea/random_finders svn: http://source.collectiveidea.com/public/rails/plugins/random_finder Cheers, -Daniel On Feb 8, 2:17 pm, Nuno Job &l

[Rails-core] Re: Routing optimization, named routes and default url options

2008-01-25 Thread Daniel Guettler
I created a ticket with simplified application: http://dev.rubyonrails.org/ticket/10925 Daniel On Jan 25, 3:18 pm, "Michael Koziarski" <[EMAIL PROTECTED]> wrote: > On Jan 26, 2008 5:10 AM, Daniel Guettler <[EMAIL PROTECTED]> wrote: > > > > > I came acr

[Rails-core] Routing optimization, named routes and default url options

2008-01-25 Thread Daniel Guettler
bug? Daniel --~--~-~--~~~---~--~~ 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-core@googlegroups.com To unsubscribe from this group, send email

[Rails-core] Re: SOAP4r problems with namespace

2007-10-31 Thread Daniel Van den oord
I have fixed a whole buch of problems the solution is not that great and I am searching or a better way this is the solution I found - #!/usr/bin/env ruby require 'rubygems' require 'defaultDriver.rb' obj = TMService.new() obj.generate_explicit_type = true obj.wiredump_dev = ST

[Rails-core] SOAP4r problems with namespace

2007-10-31 Thread Daniel Van den oord
There is something wrong with this it is missing the xsi:type. And I have no clue how to get it in... Below is what my code is trying to communicate to an axis soap server but it fails because the authInfo object is not correct --- http://www.w3.org/2001/XMLSchema-instanc

[Rails-core] Re: XML Parsing (included malformed DTD), 99% CPU DoS Attack

2007-08-03 Thread Daniel N
of > stopping this from the Rails side. Is this a DOM mode only thing? Is the SAX streaming affected as well? -Daniel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To pos

[Rails-core] Re: scraping schema

2007-07-27 Thread Daniel N
e possibility of being > better. simply reflect on that. > h.h. the 14th dalai lama I've not looked into the guts of it, but Dr Nics Magic Models do this I believe. http://magicmodels.rubyforge.org/magic_model_generator/ Cheers Daniel > > --~--~-~--~~---

[Rails-core] Re: Hatred towards Nested Polymorphic Paths

2007-07-08 Thread Daniel N
On 7/8/07, Josh Peek <[EMAIL PROTECTED]> wrote: > > > > > On Jul 7, 1:22 pm, "Daniel N" <[EMAIL PROTECTED]> wrote: > > I can't pastie it unfortunately but it. But I believe it goes for any > time > > you use a has_many :through relationsh

[Rails-core] Re: Hatred towards Nested Polymorphic Paths

2007-07-07 Thread Daniel N
On 7/8/07, Josh Peek <[EMAIL PROTECTED]> wrote: > > > On Jul 7, 1:40 am, "Daniel N" <[EMAIL PROTECTED]> wrote: > > This makes it important to have both pieces of information. This is I > > believe the same for any has_many :through association where you

[Rails-core] Re: Hatred towards Nested Polymorphic Paths

2007-07-06 Thread Daniel N
outes like this. Each user has a collection of books. Each book has a collection of clips. Clips can be shared between books. A Clip has a default view depending on which book your in when your looking at it. ( Data kept in the join model of the :through association ) This makes

[Rails-core] Re: Limitations of :conditions on associations

2007-07-04 Thread Daniel N
oes not include keys for active associations then it should behave as current. User.find( :all, :include => :articles, :conditions => { :active => true } ) #=> Should be scoped to user Is this inline with what your saying? Sorry if it's not. Daniel --~--~-~--~~---

[Rails-core] erb templates

2007-07-01 Thread Daniel N
nkyou Daniel --~--~-~--~~~---~--~~ 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-core@googlegroups.com To unsubscribe from this group, send email to [

[Rails-core] Re: namespacing breaks polymorphic_url

2007-06-13 Thread Daniel N
On 6/14/07, Trevor Squires <[EMAIL PROTECTED]> wrote: > > > On 6/12/07, Daniel N <[EMAIL PROTECTED]> wrote: > > This is a bit off topic, but could anyone point me at some discussion > about > > what the damages controller would look like in this situation. How

[Rails-core] Re: namespacing breaks polymorphic_url

2007-06-12 Thread Daniel N
On 6/11/07, Trevor Squires <[EMAIL PROTECTED]> wrote: > > > > With that in mind, consider this contrived example application: > > map.resources :houses do |house| > house.resources :walls, :has_many => :damages > house.resources :windows, :has_many => :damages > house.resources :doors, :has_m

[Rails-core] Re: Replay attacks with cookie session

2007-03-22 Thread Daniel N
On 3/23/07, Courtenay <[EMAIL PROTECTED]> wrote: > > > > (b) you can't change the contents of the cookie or it will fail the > HMAC. > > If you're overly concerned with "user_id" haxoring, just use a guid > instead of DB id in your User.find > > court3nay So does this mean that I can't use th

[Rails-core] Re: Cookie-based sessions: why HMAC?

2007-03-21 Thread Daniel N
Not really knowing much about the new cookie storage for sessions, is the session effected if I set cookies in javascript on the client machine? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" gr

[Rails-core] Re: Edge Broken

2007-01-09 Thread Daniel N
Thanx for the confirmation. I though I might have done something. I just have no idea what! On 1/10/07, Jarkko Laine <[EMAIL PROTECTED]> wrote: > > On 9.1.2007, at 16.11, Daniel N wrote: > > > > > Hi all, > > > > I've just updated my version of edge

[Rails-core] Edge Broken

2007-01-09 Thread Daniel N
Hi all, I've just updated my version of edge and it seems to be broken. Of course I could be doing something wrong. The error message is => Rails application starting on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server ** Starting Mongrel listening at 0.0.0.0:3000 **

  1   2   >