RailsCasts Pro episodes are now free!

Learn more or hide this

Forrest Zeisler's Profile

GitHub User: forrest

Site: http://getjobber.com

Comments by Forrest Zeisler

Avatar

Are Time.zone or I18n.locale thread safe? They seem like class variables, but are used in most Rails apps.

Avatar

Thanks Ryan. I was wondering if you had any tips for using assets in the JST templates?

Avatar

Hey Ryan,

Is there any reason not to have the method missing check the @object first? As the presenters are usual about a particular model, and delegating a dozen items can be painful.

Something like:

ruby
 def method_missing(*args, &block)
    if @object.respond_to? *args[0]
      @object.send *args, &block
    else
      @template.send *args, &block
    end
  end

Thanks for the great episode!

Avatar

The show notes have 'views/articles/show.json.builder' as the one path, but it should be '.jbuilder'

Very timely episode. I'm implementing it now!

Avatar

If nothing is running when I open a new tab (cmd + t) from ZSH, it is in the directory of the previous tab. However, if my rails server is running and I open a new tab, it defaults to my home directory. Any suggestions on how to get consistent behaviour? I would prefer to always have the previous tabs location.

Avatar

I've actually forked off prawnto and merged all the fragmented branches into a gem. It's working well with Rails 3.1. I hope to continue development, so don't be shy about feature requests or contributions.

You can find it at https://github.com/forrest/prawnto

Avatar

If anybody wants to use prawnto, it's become very out of date. I have tried to merge all the fragmented branches and update the code for rails 3.1. You can find the newest version with instructions and a wiki at https://github.com/forrest/prawnto.

Hope it helps!

Avatar

Very excited to try it out. Thanks for the great episode!