You guys would be amazed if you tried frameworks like Symfony (instead of discarding PHP for not being beautiful or whatever). It has always had these features, and in Symfony2 it only got more awesome. You even have a complete analysis for each request, that you can open with one click: https://s3.amazonaws.com/i.imm.io/OvjX.jpeg https://s3.amazonaws.com/i.imm.io/Ovk9.jpeg Edit: Being downvoted. Some people just don…
Better Rails errors
41–50 of 50 posts
Re: Better Rails errors
#42Earlier quoted context omitted.
Your workflow may be good, I don't mean to judge that. But is not the rails way to be in the shell, rails console and editor at all times? Instead of trying things out in the browser you have automated testing doing that for you?
Why would you ever want to make a web app without constantly testing it in a browser?
Re: Better Rails errors
#43Earlier quoted context omitted.
go to the root project in the shell, stop rails server if it's running and type: bundle install then start the server again: rails server
If he is running under Pow, there's no reason to be running 'script/server' or 'rails server'. That's what Pow does for you. As with nearly all Rack application servers I know of, you can simply restart the application by creating/updating 'tmp/restart.txt' from your Rails root. Unix's `touch` command does this nicely. With Pow specifically, you can also create '~/.pow/restart.txt' (or '~/Library/Application Support/…
Re: Better Rails errors
#44[1] http://railsapps.github.com/rails_apps_composer/ [2] http://railsapps.github.com/rails-composer/
Re: Better Rails errors
#45Re: Better Rails errors
#46You guys would be amazed if you tried frameworks like Symfony (instead of discarding PHP for not being beautiful or whatever). It has always had these features, and in Symfony2 it only got more awesome. You even have a complete analysis for each request, that you can open with one click: https://s3.amazonaws.com/i.imm.io/OvjX.jpeg https://s3.amazonaws.com/i.imm.io/Ovk9.jpeg Edit: Being downvoted. Some people just don…
Re: Better Rails errors
#47Re: Better Rails errors
#48Earlier quoted context omitted.
A bit late now, but 4.1 could get a campaign for this.
It is not too late to get things into Rails 4. We haven't released a beta yet. One of the things Rails 4 already features is better error pages, though no REPL.
Re: Better Rails errors
#49Earlier quoted context omitted.
It is not too late to get things into Rails 4. We haven't released a beta yet. One of the things Rails 4 already features is better error pages, though no REPL.
REPL requires [binding_of_caller]( https://github.com/banister/binding_of_caller ) anyway, which i doubt rails would include any time soon ;)
Re: Better Rails errors
#50I love this! To get it to work with my mixed Padrino/Sinatra rack app I had to do this in each app: if PADRINO_ENV == "development" set :raise_errors, true set :show_exceptions, false end and use BetterErrors::Middleware if PADRINO_ENV == "development" in my "config.ru". I'm not deeply familiar with Padrino or Sinatra and so it took a lot of experimentation (and source reading) to find the right incantation. But it's…
https://github.com/padrino/padrino-recipes/blob/master/plugi...