[Rails-core] Re: Support for localized numbers

2009-05-26 Thread Clemens Kofler
ck is clemensk. I'd love to discuss this with you and hear your opinions. - Clemens On May 25, 12:48 pm, Adam Meehan wrote: > Wondering whether my validates_timeliness plugin may give some ideas > on the date/time parsing front.  The Formats class handles I18n > parsinghttp

[Rails-core] Re: Support for localized numbers

2009-05-24 Thread Clemens Kofler
4th March 03, right? The only dates that are fairly unambiguous are dates including month names and 4-digit years. So how do I circumvent this issue when trying to parse? Question is: What would/should happen if the user passes a date/time that can't be parsed? Raise errors? Just set it to n

[Rails-core] Re: Support for localized numbers

2009-05-23 Thread Clemens Kofler
Just thinking: There are actually two more options (maybe more, but I can think of two right now) if accepting localized input for all numbers seems too drastic. a) Have a config hook that is disabled by default, e.g. config.active_record.delocalize_input = false. Only when this is set to true, n

[Rails-core] Re: Support for localized numbers

2009-05-23 Thread Clemens Kofler
27; would become 19.0 and @product.price = 'a string' would become 0.0). Or am I misunderstanding the point you're trying to make? In any case: Thanks for the feedback so far - it helped me see that I needed to present my ideas more clearly. - Clemens --~--~-~--~~

[Rails-core] Support for localized numbers

2009-05-22 Thread Clemens Kofler
Hi guys, I was wondering if there's any interest in including support for localized numbers directly in Rails core. Example: @product.price = '19,95' # => 19.95 There's a really simply way to get this done as can be seen at http://github.com/

[Rails-core] Re: routing: pass the segment key to to_param if it wants so?

2009-03-23 Thread Clemens Kofler
I like that. It would make the handling of permalinks much more transparent. On Mar 23, 12:37 am, Sven Fuchs wrote: > I wondered why routing does not pass the current route segment key to   > to_param if to_param accepts a parameter. > > This would allow to have a route like > >    map.article "

[Rails-core] Re: Localized Templates on edge rails

2009-01-31 Thread Clemens Kofler
I agree with José - for the same reasons he mentioned. Maybe it makes sense to just drop the current implementation and include the localized templates plugin (if that's possible)? - Clemens On Jan 30, 6:33 pm, José Valim wrote: > Hi guys, > > I just saw that localized templates

[Rails-core] Re: I would like to contribute to the development of rails.

2009-01-31 Thread Clemens Kofler
f TDD. I don't know if this is still true (it's been a while since my last contribution), but I think you need three people to +1 your suggestion/ patch before core team members look at it. Another option would be to announce tickets in the rails-contrib IRC channel. - Clemens On

[Rails-core] Re: javascript agnostic feature in rails

2009-01-29 Thread Clemens
Obviously, I like that too - otherwise I wouldn't have made the suggestion half a year ago! :-) Make sure that you contact me as soon as something's decided - I'd be happy to help implementing this! - Clemens On Jan 29, 3:36 am, Mislav Marohnić wrote: > On Thu, Jan 29,

[Rails-core] Re: Excess deprecations (number_with_precision deprecation in 2.2)

2008-11-17 Thread Clemens
on - makes plenty of sense and is a valid reason for deprecation, even if it occasionally results in some verbosity like you indicated. I hope this explains the change sufficiently. Otherwise maybe Josh would like to chime in since he was the one who committed it. - Clemens On Nov 16, 10:40 pm, &

[Rails-core] Re: Consolidating the Helpers API

2008-07-17 Thread Clemens
If anyone's interested, I've forked Rails and started work on it here: http://github.com/clemens/rails NumberHelper is already updated, including tests and docs (although I might rework the docs to make them more consistent). --~--~-~--~~~---~--~~ You rec

[Rails-core] Re: Documentation issues in Lighthouse

2008-07-17 Thread Clemens
suming than actually writing the patch. - Clemens On Jul 17, 5:37 am, Tim Haines <[EMAIL PROTECTED]> wrote: > Hi there, > > I'm wondering if a decision has been made as to whether it's desirable > to have issues logged in lighthouse that are about documentation only? >

[Rails-core] Re: RFC: associations with :accessible => true should allow updating

2008-07-17 Thread Clemens
I'm generally in favor of this for pretty much the same reason as Hique. One thing, though: If this kind of behavior was merged into core, the fields_for method should also be updated to accept an array as its first parameter to facilitate the use of nested hashes. Right now, we have to do someth

[Rails-core] Consolidating the Helpers API

2008-07-16 Thread Clemens
for the next major release - but then again, who am I to decide that stuff? ;-) I'd love to hear what you guys from the core team and other people think about it before getting down to work. The NumberHelper is, I think, would be fairly easy to refactor b

[Rails-core] Re: It might be ORM problem

2008-07-12 Thread Clemens
Sadeesh, a little hint from my side: It may be a better idea to post this on railsforum.com or the workingwithrails.com forums. This mailing list is more related to the development of the framework than providing help. Cheers, - Clemens On Jul 12, 11:45 am, sadeesh kumar <[EMAIL PROTEC

[Rails-core] Re: ActionController for Resources

2008-07-10 Thread Clemens
ultra-DRY but this way the actual API stays clean and keeps it down to a reasonable amount of magic while still covering most cases. - Clemens --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core&q

[Rails-core] Re: JavaScript and URL helpers need some love regarding best practices

2008-07-09 Thread Clemens
> I like the spirit of that. I kinda wonder if it becomes a little too > magical. Some times the fallback URL will be set, some times it won't. > And if the implementor hasn't considered this and used a respond_to > block, expecting that all calls will be JS, then the non-JS user will > just end u

[Rails-core] Re: JavaScript and URL helpers need some love regarding best practices

2008-07-09 Thread Clemens
> Wouldn't this defeat the entire purpose of *not* using a link.  The > rationale as I understand it is 'links should be safe to click'.  If > it looks like a link, acts like a link, but still isn't safe, then > we're worse off than with the current implementations.  It still > surprises people bu

[Rails-core] Re: JavaScript and URL helpers need some love regarding best practices

2008-07-09 Thread Clemens
te", but maybe also configurable) so we can easily add our unobtrusive JS layer to it (using lowpro or whatever). That way, we're backwards compatible and satisfy most people's needs that don't care about unobtrusive JS while the unobtrusive folks could take a shortcut and use link_

[Rails-core] Re: JavaScript and URL helpers need some love regarding best practices

2008-07-08 Thread Clemens
> Given how widely used the current fuctionality is, then we'd need to > see much better adoption of the better solution before we could do > something like this. > > If something easier, and more accesible emerges then we can go for it, >  but personally I definitely prefer to use link_to_remote

[Rails-core] Re: JavaScript and URL helpers need some love regarding best practices

2008-07-08 Thread Clemens
that I might get in trouble for saying it or at least kick off a discussion because what I said can easily be misunderstood. I had already written an answer to that one but I've deleted it a few seconds ago to not kick of the argument about that because I think the matter at hand is way more impo

[Rails-core] Re: JavaScript and URL helpers need some love regarding best practices

2008-07-07 Thread Clemens
s, to me, is a whole lot of good practices and rules and it should be consistent in that way without any exceptions - not even something as "humble" as the helpers. Anyways, I'd love to hear more opinions on the topic. Best, - Clemens On Jul 8, 12:11 am, "Nik Wakelin" <[

[Rails-core] JavaScript and URL helpers need some love regarding best practices

2008-07-07 Thread Clemens
ovide patches if you agree with me that this is an issue worth being addressed. Please let me know what you think. Best, - Clemens --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" gr