Skip to content

Commit

Permalink
genericify blog config
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Wiggins committed Nov 4, 2008
1 parent c9bb401 commit 57f13f7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

require 'ostruct'
Blog = OpenStruct.new(
:title => 'a tornado of razorblades',
:author => 'Adam Wiggins',
:url_base => 'http://adam.blog.heroku.com/',
:admin_password => 'noodle',
:admin_cookie_key => 'admin',
:admin_cookie_value => 'yup'
:title => 'a scanty blog',
:author => 'John Doe',
:url_base => 'http://localhost:4567/',
:admin_password => 'pick_your_password',
:admin_cookie_key => 'scanty_admin',
:admin_cookie_value => '51d6d976913ace58'
)
end

Expand Down
2 changes: 1 addition & 1 deletion views/index.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div id="header">
<div id="logo">
<h1><a href="/"><%= Blog.title %></a></h1>
<p>by adam @ heroku</p>
<p>by <%= Blog.author %></p>
</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion views/layout.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div id="header">
<div id="logo2">
<h1><a href="/"><%= Blog.title %></a></h1>
<p>by adam @ heroku</p>
<p>by <%= Blog.author %></p>
</div>
</div>

Expand Down

0 comments on commit 57f13f7

Please sign in to comment.