Skip to content
This repository has been archived by the owner on Apr 23, 2019. It is now read-only.

Commit

Permalink
Include section on how to customize views and partials.
Browse files Browse the repository at this point in the history
  • Loading branch information
pglombardo committed Jun 22, 2011
1 parent 8c11c89 commit f8caa9a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Expand Up @@ -59,6 +59,20 @@ To further customize loudmouth, edit the values in the installed initializer fil
# Default comment text for the new comment form # Default comment text for the new comment form
config.new_comment_content = "Enter new Comment..." config.new_comment_content = "Enter new Comment..."


### Custom Views

You can even run the generator to install the views used to render comments:

rails g loudmouth:views

This installs the following files into your application:

app/views/loudmouth/comments/_comment.html.haml
app/views/loudmouth/comments/_comment_form.html.haml
app/views/loudmouth/comments/index.html.haml

With these views, you can customize how comments appear and are rendered.

### Overriding the Loudmouth Controller ### Overriding the Loudmouth Controller


Any loudmouth method can be overridden. And hey...there's a generator for that! Any loudmouth method can be overridden. And hey...there's a generator for that!
Expand Down

0 comments on commit f8caa9a

Please sign in to comment.