Re: [Rails-core] Approximate release timeline for Rails 4?

2012-09-30 Thread Jeremy Walker
On 1 October 2012 00:43, Steve Klabnik st...@steveklabnik.com wrote: Soonish. There are some things that are blocking the release, but they're being worked on. There's no set date. All the major pieces are in place. am curious if it would be better to split the bugs out as individual

Re: [Rails-core] Route helpers in JS/CS assets

2012-06-06 Thread Jeremy Walker
No pressure at all :) I'm using a patched version of js-routes right now: https://github.com/railsware/js-routes/pull/46 I'd certainly appreciate your effort on that, but I'd just like to advice you on thinking about the solution in the Rails side first as I guess this is the hardest

Re: [Rails-core] Route helpers in JS/CS assets

2012-06-01 Thread Jeremy Walker
On 31 May 2012 14:10, Rodrigo Rosenfeld Rosas rr.ro...@gmail.com wrote: Are there any reasons why Rails doesn't have any route helpers available for the JS/CS assets? We're doing more and more client-side code and it is very likely that you'll need to do something like $.post products_path,

Re: [Rails-core] Route helpers in JS/CS assets

2012-06-01 Thread Jeremy Walker
compiled to: $.get projects/ + project.id And voila, you have a working solution. Am I missing something? :) -- Steve Schwartz On Friday, June 1, 2012 at 11:55 AM, Jeremy Walker wrote: On 31 May 2012 14:10, Rodrigo Rosenfeld Rosas rr.ro...@gmail.com wrote: Are there any reasons why

Re: [Rails-core] Route helpers in JS/CS assets

2012-06-01 Thread Jeremy Walker
On 1 June 2012 17:22, Rodrigo Rosenfeld Rosas rr.ro...@gmail.com wrote: Em 01-06-2012 13:20, Jeremy Walker escreveu But in the CoffeeScript, the developer will know the id of the resource they're calling. So, the CS: $.get project_path(project.id) ...could be pre-processed, using

Re: [Rails-core] Route helpers in JS/CS assets

2012-06-01 Thread Jeremy Walker
On 1 June 2012 18:23, Rodrigo Rosenfeld Rosas rr.ro...@gmail.com wrote: Em 01-06-2012 13:45, Jeremy Walker escreveu: Good point. Am I correct in saying that the only time this is a real issue is if someone defines two routes, with the same name, but different paths, e.g. match

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

2012-05-31 Thread Jeremy Walker
On 31 May 2012 14:23, Sam Oliver s...@samoliver.com wrote: On Thu, May 31, 2012 at 2:12 PM, James B. Byrne byrn...@harte-lyne.cawrote: I would generate attribute query methods only for boolean attributes. I am not sure that I understand your point, but in Ruby anything that is neither nil