trestle_generator 1.1.5 → 1.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/trestle_generator.rb +5 -2
  2. metadata +2 -2
@@ -114,8 +114,11 @@ class TrestleGenerator < Rails::Generator::NamedBase
114
114
  "#{controller_file_name}_helper.rb")
115
115
 
116
116
  # Layout and stylesheet.
117
- m.template 'layout.rhtml', "app/views/layouts/#{controller_file_name}.rhtml"
118
- m.template 'style.css', 'public/stylesheets/trestle.css'
117
+ m.template 'layout.rhtml',
118
+ File.join('app/views/layouts',
119
+ controller_class_path,
120
+ "#{controller_file_name}.rhtml")
121
+ m.template 'style.css', 'public/stylesheets/trestle.css'
119
122
 
120
123
 
121
124
  # Non-trestle views.
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: trestle_generator
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.1.5
7
- date: 2006-05-18 00:00:00 -05:00
6
+ version: 1.1.6
7
+ date: 2006-06-26 00:00:00 -05:00
8
8
  summary: "[Rails] A drop-in replacement for the scaffold generator that produces production-ready controllers that are safe from state-changing HTTP GET requests and that have streamlined URLs."
9
9
  require_paths:
10
10
  - templates