Sha256: da58ae200b3d7ec55f39511f76c90484a35e8ade365b8d0c87e1af61f2deb6ba
Contents?: true
Size: 947 Bytes
Versions: 2
Compression:
Stored size: 947 Bytes
Contents
recipe :application_helper do description 'This will add helpers that used within generated layout and views' after :home_controller silently do remove_file 'app/helpers/application_helper.rb' copy_file 'application_helper.rb', 'app/helpers/application_helper.rb' # TODO: Add version for prototype and Jquery # TODO: Translate flash_messages.js to CoffeeScript copy_file 'flash_messages.js', 'app/assets/javascripts/flash_messages.js' gsub_file 'app/assets/javascripts/application.js', '//= require_tree .' do <<-CONTENT.gsub(/^ {8}/, '') //= require flash_messages //= require_tree . CONTENT end gsub_file 'config/locales/en.yml', 'en:' do <<-CONTENT.gsub(/^ {8}/, '') en: helpers: application: link_to_delete: link_text: Delete? confirmation: Are you sure? CONTENT end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
playmo-0.1.1 | lib/playmo/recipes/application_helper_recipe.rb |
playmo-0.1.0 | lib/playmo/recipes/application_helper_recipe.rb |