Permalink
Browse files

use helper methods provided by flutie

  • Loading branch information...
1 parent 354321d commit e0bab837ab7fbaab4af764791b86659793b73349 @mjankowski mjankowski committed Sep 22, 2011
View
@@ -44,7 +44,6 @@ rush to build something amazing; don't use it if you like missing deadlines.
template/files/README_FOR_SUSPENDERS
template/files/_flashes.html.erb
template/files/_javascript.html.erb
- template/files/body_class_helper.rb
template/files/cucumber_assertions_hack
template/files/errors.rb
template/files/factory_girl_steps.rb
@@ -1,7 +0,0 @@
-module BodyClassHelper
- # TODO: move this into a gem/plugin
- def body_class
- qualified_controller_name = controller.controller_path.gsub('/','-')
- "#{qualified_controller_name} #{qualified_controller_name}-#{controller.action_name}"
- end
-end
@@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8" />
- <title><%= app_name %></title>
+ <title><%%= page_title %></title>
<%%= stylesheet_link_tag :flutie, 'screen', :media => 'all', :cache => true %>
<%%= csrf_meta_tag %>
</head>
View
@@ -150,8 +150,6 @@ def trout(destination_path)
copy_file "errors.rb", "config/initializers/errors.rb"
copy_file "time_formats.rb", "config/initializers/time_formats.rb"
-copy_file "body_class_helper.rb", "app/helpers/body_class_helper.rb"
-
say "Setting up a root route"

3 comments on commit e0bab83

Contributor

ryw replied Feb 28, 2013

Since this code relies on flutie gem, shouldn't flutie be in default Gemfile for new suspenders app?

Just trying out suspenders for first time, I had to track down where page_title was coming from.

Owner

jferris replied Feb 28, 2013

@ryw flutie i in the default Gemfile: https://github.com/thoughtbot/suspenders/blob/master/templates/Gemfile_clean#L5

There was a transition period where flutie changed from being a set of stylesheets to just being ActionView helpers, and flutie was accidentally removed from the Gemfile. You may have generated your application during this transition.

Contributor

ryw replied Feb 28, 2013

I installed suspenders and generated app yesterday.

Looks like flutie is missing in the current gem release 1.2 (released 15 days ago) and fixed 13 days ago in this commit: 45379cd

So you guys probably want to toss out a bugfix release...

Please sign in to comment.