Re: [Rails-core] [Suggestion] Prevent Rails from writing development/test log files by default

2016-10-24 Thread Aaron Patterson
I use them too, but at work we only write to the log if the file already exists. So if you rm `log/test.log` it won't be written to, but if you touch it, then you'll get logs. On Tue, Oct 25, 2016 at 02:15:51AM +, Rafael Mendonça França wrote: > I personally use `test.log` a lot to check the

Re: [Rails-core] [Suggestion] Prevent Rails from writing development/test log files by default

2016-10-24 Thread Rafael Mendonça França
I personally use `test.log` a lot to check the sql queries that are being made in my test run. Also setups using pow or any long running web server only uses the development.log so changing this will break that setup. I can see we disabling the boardcast, but I’d not do that by default. On Mon,

[Rails-core] [Suggestion] Prevent Rails from writing development/test log files by default

2016-10-24 Thread Lucas Caton
Hi there. I know this, although easy, would be a big step. So I'd love to hear your thoughts. I can't remember the last time I needed to open/read log/development.log or log/test.log. This is just consuming disk space unnecessarily (my test.loge easily reaches more than 1 GB!). After

[Rails-core] is order of execution of append before action filters same as their order of appearance in the source?

2016-10-24 Thread Nilesh More
Does rails guarantee that the order of execution of multiple append_action_filters is same as the order in which these filters appear in the source file? For example, I have a rails controller problems_controller.rb, a snippet from which is copied below. append_before_action

[Rails-core] Link_to conditional classes with 'class:' feature request (and all the other helpers that take CSS classes)

2016-10-24 Thread emile
Heya, Setting condition classes is a huge pain in rails at the moment, or maybe i am missing it but i can't see to find it. borrowed from react components kind of style. I want something like this (the class selected is only added if the value is true) link_to("Homepage", root_path, class:

[Rails-core] Re: Allow hash for conditional class attribute in tag helper

2016-10-24 Thread emile
Well this is old, but still relevant :) I've seen the replies, but i've we do it the way we wanted and just because all the other attributes are doing it that way, i think you're doing it wrong. Rails is meant to please the developer, making painful constructs just to make a link selected or