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

2015-02-06 Thread Nicolas Cavigneaux
Le 6 févr. 2015 à 16:21, Jason Fleetwood-Boldt a écrit : Is Rails' API coded for the neophyte or the experienced dev? The eternal question. For people who know how to read basic, essential doc and well documented stuff? -- Nicolas Cavigneaux www.bounga.org www.cavigneaux.net

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

2015-02-04 Thread Nicolas Cavigneaux
Le 4 févr. 2015 à 12:00, Magne magn...@gmail.com a écrit : I ran into a situation with .html_safe when communicating with a fellow programmer, and discovered that the method name isn't as clear as desired. .html_safe does not mean please make this html safe, it's the opposite - it is you

Re: [Rails-core] t(.key) convenience pollutes global i18n namespace

2014-11-04 Thread Nicolas Cavigneaux
with you. I always felt it was some kind of pollution too. It would be nice if t() helper used with period was using a namespace. — Nicolas Cavigneaux http://www.bounga.org http://www.cavigneaux.net -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Core

Re: [Rails-core] [Feature request] content_tag do |el| ... end to create complex tags

2014-10-27 Thread Nicolas Cavigneaux
using inline test. I would use helpers to do this kind of things. — Nicolas Cavigneaux http://www.bounga.org http://www.cavigneaux.net -- 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

Re: [Rails-core] ROR Newby

2014-10-24 Thread Nicolas Cavigneaux
ideas? Hi Nicole, you're not on the mailing list dedicated to help people with using RoR or with their code. This mailing list is about Rails core development, enhancing it, not using it. You should ask your question on https://groups.google.com/forum/#!forum/rubyonrails-talk. -- Nicolas

Re: [Rails-core] Feature idea: nicer scaffolded views

2014-10-15 Thread Nicolas Cavigneaux
is not the good one. -- Nicolas Cavigneaux http://www.bounga.org http://www.cavigneaux.net -- 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

Re: [Rails-core] Feature Request: form associated element

2014-10-14 Thread Nicolas Cavigneaux
as-is. But I think he's asking if he can use form_for variant of helpers outside of the form_for block. So you can use *_tag helpers outside of a form_for and set 'form' attributes by hand but you'll also need to handle value attribute. -- Nicolas Cavigneaux http://www.bounga.org http

Re: [Rails-core] [patch] Enumerable#uniq?

2011-03-16 Thread Nicolas Cavigneaux
} How would you handle simple cases like: [ 1, 1, 2 ].uniq? { |x| x 1 } # = true ? -- Nicolas Cavigneaux http://www.bounga.org http://www.cavigneaux.net -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Core group. To post to this group, send email

Re: [Rails-core] Re: Enumerable#uniq?

2011-03-16 Thread Nicolas Cavigneaux
Le 16 mars 2011 à 17:12, Robert Pankowecki a écrit : From documentation: enum.one? [{|obj| block }] → true or false Yes but how to have @post.uniq? { |x| x.created_at.month } ? -- Nicolas Cavigneaux http://www.bounga.org http://www.cavigneaux.net -- You received this message because

Re: [Rails-core] Re: Enumerable#uniq?

2011-03-16 Thread Nicolas Cavigneaux
of adding those methods. Just trying to understand your scenarios. Yes it's what I was trying to do. The only is to add 2 methods. Method names you chose sound good to me. Why don't you want these methods to be added? -- Nicolas Cavigneaux http://www.bounga.org http://www.cavigneaux.net -- You

Re: [Rails-core] Re: Enumerable#uniq?

2011-03-16 Thread Nicolas Cavigneaux
Le 16 mars 2011 à 23:10, Andrew Kaspick a écrit : Filtering duplicate values should be done in the database layer IMO. The idea here is not to work on DB objects only but on any kind of object. -- Nicolas Cavigneaux http://www.bounga.org http://www.cavigneaux.net -- You received

Re: [Rails-core] Re: Enumerable#uniq?

2011-03-16 Thread Nicolas Cavigneaux
send a patch. Thanks a lot for your advices Robert. -- Nicolas Cavigneaux http://www.bounga.org http://www.cavigneaux.net -- 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