Questions tagged [towerjs]

Tower.js is an open source full-stack web framework for Node.js and the browser.

Tower.js is an open source full-stack web framework for Node.js and the browser.

Where to start:

Contributing to the community:

  1. If you could solve the problem, spend some time to help the community by answering the questions.
  2. Up-vote and down-vote appropriately to rate and maintain the quality of questions and answers posted.
  3. Be part of the community and keep contributing as best you can.
50 questions
0
votes
1 answer

Error installing Tower.js

Strugging to get tower.js installed on my snow leopard macbook. Here is the command and the error: My-Macbook:tower john$ tower new app node.js:201 throw e; // process.nextTick error, or 'error' event on first tick …
Mild Fuzz
  • 29,463
  • 31
  • 100
  • 148
0
votes
1 answer

Tower.js: "Factory 'posts' doesn't exist"

Using Tower 0.4.2-20: I've followed the examples and the code all seems to be generated but I get a factory not defined error when I run the tests. To be more specific: tower new app cd app npm install tower generate scaffold Post title:string…
Jeremy
  • 1,198
  • 1
  • 9
  • 16
0
votes
1 answer

EmberJS {{#with}} block not displaying

the controller looks like this class App.ContactsController extends Tower.Controller index: (params) -> @set('person', App.HighrisePerson.create()) @render "index" the view looks like this App.ContactsEditView = Ember.View.extend …
j_mcnally
  • 6,928
  • 2
  • 31
  • 46
0
votes
1 answer

Wierd routing issues with towerjs

if my router says @resources "homes" and i navigate to /homes everything loads but if i have @match '/', to: 'homes#index' and navigate to / nothing happens. I just get my template.
j_mcnally
  • 6,928
  • 2
  • 31
  • 46
0
votes
2 answers

Towerjs locales error

I am experimenting with towerjs. I just followed the instructions to create a project. npm install tower -g npm install grunt -g mongod tower new app cd app npm install And when I try to start the server for the project I get the following…
GTDev
  • 5,488
  • 9
  • 49
  • 84
0
votes
1 answer

Overriding template logic in TowerJS Views

How do I override how templates are rendered in TowerJS? I know I can use Jade, but if I stuck with CoffeeKup, how could I, for instance have this code: formFor @user, (form) -> form.fieldset "Profile", (fields) -> fields.field "firstName" …
User 1058612
  • 3,739
  • 1
  • 27
  • 33
0
votes
1 answer

computed property not displaying correctly in EmberJS, showing [object Object]

If I have an ember object in coffeescript as per the documentation Person = Ember.Object.extend name: null lastName: null fullName: Ember.computed -> return 'hello' .property('name', 'lastName') person = Person.create name: 'Tom' …
scottkf
  • 67
  • 1
  • 8
0
votes
1 answer

Specify or change ID of a Tower model

You are not allowed to set a specific id in the current development branch of towerjs anymore. Do you know if there is any way to do this? I can't seem to be able to do: data = id: "123456asdasd" name: "Foo" App.User.create data, (err,…
Sebastian Hoitz
  • 9,343
  • 13
  • 61
  • 77
0
votes
1 answer

tower.js with passport.js example

I am new to tower.js i want to integrate passport.js for the facebook authentication please any one can give me me a short but detail example how to to integrate login functionality and where to put the code. thanks.
Asnad Atta
  • 3,855
  • 1
  • 32
  • 49
0
votes
1 answer

How to upload towerjs assets to S3?

What is the right way to upload production assets to S3 in towerjs? I have my S3 credentials configured in config/credentials.coffee Then I try cake assets:publish and get /Users/avaranovich/projects/demos/node/firstApp/Cakefile:15 …
Andrei Varanovich
  • 492
  • 1
  • 5
  • 16
0
votes
1 answer

New app won't scaffold with Jade templates

When scaffolding a new tower js app i execute tower new demo --views jade but i still get the default CoffeeKup layouts. Any help with this would be great
j_mcnally
  • 6,928
  • 2
  • 31
  • 46
0
votes
1 answer

Need towerjs "Mailers" working example

I reed Tower.js doc and totally cant see - how I may get worked mailer? Mailers section said: class App.Notification extends Tower.Mailer # app/views/mailers/welcome.coffee template @welcome: (user) -> @mail to: user.email, from:…
Meettya
  • 345
  • 2
  • 9
0
votes
1 answer

Best way to change html state class on active page

I'm testing 2 example projets, one with just express and another with tower.js I just want to put the correct css class on the li of the active page, in the beginning of the page rendering. Ex: I'm in the page /info, and I want to add the class…
Rafael Motta
  • 2,328
  • 2
  • 19
  • 18
0
votes
1 answer

Towerjs model finders - variable scopes

I want do query on model, and next depend on resaults do someting else The problem: exists = false App.User.where(email: "example@domain.com").exists (error, exists) => console.log exists #=> true console.log exists #=>…
Marcin Rogacki
  • 501
  • 6
  • 23
0
votes
2 answers

Relationnal model with Towerjs (coffeescript & mongodb)

I need to recover in towerjs (with mongodb store) quote stock from all stock in all trades of one user. This code don't work, the while loop does not stop, but I do not understand why App.Trade.where(userId: @currentUser.get('id')).order("date",…