RailsCasts Pro episodes are now free!

Learn more or hide this

Tobias's Profile

GitHub User: johnjohndoe

Site: http://weblog.avp-ptr.de

Comments by Tobias


I found a replacement for request.path[1..-1] posted by Jeroen Rosenberg:

status_code = ActionDispatch::ExceptionWrapper.new(env, @exception).status_code

I got the script running by changing sublime to subl since the command is not available on my machine. I added a comment to the Gist. Thanks to Vojtěch Kusý.


Does this work for you on Chromium on Ubuntu, too?


I am trying to use RABL with a model structure using inheritance. I fail setting up a matching template.
Maybe you can take a look here.


I am having problems to use CanCan's accessible_by method. If you have the time please take a look at this Stackoverflow question: http://stackoverflow.com/questions/14138408/cancan-accessibly-by-returns-different-responses-in-spec-and-controller


@djensen47 Your advice is still useful in Rails 3.2.3 and Ruby 1.9.3-p125 to make the published_on field show up the date. Thx!


Hey Ryan. Thank you for this great tutorial!

I stumbled into one problem where rake db:migrate:all fails, because of a missing port configuration for the test environment. I documented the problem and the solution on Stackoverflow.

One more question: Would you recommend to prepend bundle exec to the commands you used?


Does the example still show how one would do this with Rails3?