RailsCasts Pro episodes are now free!

Learn more or hide this

omcnet's Profile

GitHub User: omcnet

Comments by

Avatar

The choice of whether using a cms/dynamic approach or a static
implementation is more a question of how often the content is supposed to change and how the process of this change is implemented, rather than how many static files the project contains.
One should not forget the massive performance difference between
these two approaches.

Avatar

Hi Rian,

great railscast as usual. One note though.
In your cast you're caching the PermittedParams, which doesn't seem to be a good idea, since you're passing the params as an argument.

In development this will work, but in production you will end up with the PermittedParams holding the params from the very first request. Of course this applies to the user as well.

Maybe I'm missing something, so I'm glad to hear your opinion.