Skip to content

Instantly share code, notes, and snippets.

@westonplatter
Created August 26, 2012 03:54
Show Gist options
  • Save westonplatter/3473770 to your computer and use it in GitHub Desktop.
Save westonplatter/3473770 to your computer and use it in GitHub Desktop.
app1
|- app/views/photo_contests
| |- index.html.erb # => custom view template #1
|
\- Gemfile (gem 'common_engine')
app2
|- app/views/photo_contests
| |- index.html.erb # => custom view template #2
|
\- Gemfile (gem 'common_engine')
common_engine
|
|- app/controllers/PhotoContentsControllers.rb
| |- index
| |- show
| |- vote
|
|- app/models/photo_contest.rb
|
|- app/views/photo_contents
| |- index.html.erb
| |- show.html.erb
| |- vote.html.erb
|- config/routes.rb
|- lib/common_engine/engine.rb
|- lib/common_engine.rb
\- common_engine.gemspec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment