spec/fixtures/test_scaffold.rb in scaffoldhub-0.0.7 vs spec/fixtures/test_scaffold.rb in scaffoldhub-0.0.8

- old
+ new

@@ -37,32 +37,34 @@ # Define a view template - this ERB file will be used to generate a new # view file with this path & filename: app/views/PLURAL_NAME/view_file_name.rb view 'templates/_form.html.erb' # Define a view layout template - this ERB file will be used to generate a new - # view layout file with this path & filename: app/views/layouts/PLURAL_NAME.rb + # view layout file with this path & filename: app/views/layouts/PLURAL_NAME.html.erb layout 'templates/layout.erb' # You can use "with_options" to specify the same source folder for a series of templates: with_options :src => 'templates' do view 'new.html.erb' view 'edit.html.erb' view 'index.html.erb' view 'show.html.erb' + view 'partial.erb', :rename => '_NAME.html.erb' end # Specify some other code file that should be generated from an ERB template; use # the :dest option is required to indicate where the generated file should go template 'templates/other_code_file.erb', :dest => 'lib/other_code_file.rb' # Specify some other file that should be simply copied into the target app somwhere # the :dest option is required to indicate where the generated file should go file 'templates/jquery/jquery-1.4.4.min.js', :dest => 'public/javascripts' - # You can use with_options recursively - both the :src and :dest options values - # will be constructed relative to the parent with_option values. with_options :src => 'templates/jquery', :dest => 'public/javascripts' do file 'jquery-ui-1.8.10.custom.min.js' + + # You can use with_options recursively - both the :src and :dest options values + # will be constructed relative to the parent with_option values. with_options :src => 'ui-lightness', :dest => 'ui-lightness' do file 'jquery-ui-1.8.10.custom.css' with_options :src => 'images', :dest => 'images' do file 'ui-bg_diagonals-thick_18_b81900_40x40.png' file 'ui-bg_diagonals-thick_20_666666_40x40.png'