tyop and history fix

This commit is contained in:
John Bintz 2011-05-19 20:53:39 -04:00
parent b7d0e181d8
commit 1ab4d353fa
4 changed files with 5 additions and 3 deletions

View File

@ -109,7 +109,7 @@ class BackboneGenerator < Thor
desc "app-helper", "Generate an application helper for useful Backbone things"
def app_helper
template("app_helper.#{extension}.erb", File.join(script_target, "applications", "backbone_helper.#{extension}"))
template("app_helper.#{extension}.erb", File.join(script_target, "application", "backbone_helper.#{extension}"))
end
desc "app-scaffold", "Generate an application scaffold"

View File

@ -113,7 +113,7 @@ describe 'backbone-generator' do
it "should generate an app helper" do
run "app-helper", '--coffee'
File.file?(collection = 'app/assets/javascripts/applications/backbone_helper.coffee').should be_true
File.file?(collection = 'app/assets/javascripts/application/backbone_helper.coffee').should be_true
end
end
@ -249,7 +249,7 @@ describe 'backbone-generator' do
it "should generate an app helper" do
run "app-helper"
File.file?(collection = 'public/javascripts/applications/backbone_helper.js').should be_true
File.file?(collection = 'public/javascripts/application/backbone_helper.js').should be_true
end
end

View File

@ -1,5 +1,6 @@
class window.AppView extends Backbone.View
el: '#application'
routes: {}
template: JST['application/app_view']
initialize: ->
controller = new Controller({app: this})

View File

@ -1,5 +1,6 @@
var AppView = Backbone.View.extend({
el: '#application',
routes: {},
template: JST['application/app_view'],
initialize: function() {
_.bindAll(this, 'render');