plataformatec/show_for — pull request #49 by fabiokr (2012-07-24 13:21:29+00:00)
Title: Uses model model_name.param_key as the object name

For a namespaced model like Blog::Post, show_for outputs the model name as blogpost (so an attribute is output with a class blogpost_body). On Rails forms, it is output as blog_post (blog_post_body). To have that same behavior, this pull request changes show_for to get the object name from the model model_name.param_key.