RailsCasts Pro episodes are now free!

Learn more or hide this

Paul Makepeace's Profile

GitHub User: PaulMakepeace

Site: http://paulm.com/

Comments by Paul Makepeace

Avatar

Worth noting that at the end of products_controller.rb you'll need to add :released_on to get through the param filter,

ruby
    def product_params
      params.require(:product).permit(:name, :price, :released_on)
    end
Avatar

If your assets directory has a lot of compressible files, e.g. text, XML, JS, etc. rsync -z to compress can be worthwhile. Rather than -r which just recurses into the directory, consider -a (--archive) which preserves timestamps, ownership, symlinks, etc. Depending on circumstances this can be less surprising...