added a manifest file #89

Closed
wants to merge 3 commits into
from

Conversation

Projects
None yet
2 participants
@nathanvda

Hi there, thank you for your awesome work.
I am just starting with backbone, so for me it was at first a bit hard to get everything to work, as it was not entirely clear to me how and which files to include in the asset-pipeline.

To make that easier, I included an manifest file rails_backbone so including all needed files just becomes a single file, likeso:

//= require rails_backbone

A developer still has to include her application of course. I also clarified this in the README file.

I also changed a few smaller things:

  • gitignored the rvmrc (each developer can then use her own)
  • I needed to add therubyracer to the Gemfile (I am on ubuntu)

I hope this helps.

@codebrew codebrew closed this Jan 26, 2012

@codebrew

This comment has been minimized.

Show comment
Hide comment
@codebrew

codebrew Jan 26, 2012

Owner

It sounds like you might be a bit confused with how to use this project.

Inside your existing rails3.1 or greater app, just add gem rails_backbone then do a bundle install and rails g backbone:install. This is all in the readme and sets up everything you need. I decided to not to a manifest file originally because then it prevents people from picking and choosing what libs they want to include.

Owner

codebrew commented Jan 26, 2012

It sounds like you might be a bit confused with how to use this project.

Inside your existing rails3.1 or greater app, just add gem rails_backbone then do a bundle install and rails g backbone:install. This is all in the readme and sets up everything you need. I decided to not to a manifest file originally because then it prevents people from picking and choosing what libs they want to include.

@nathanvda

This comment has been minimized.

Show comment
Hide comment
@nathanvda

nathanvda Jan 26, 2012

Ah right, now I see the problem. I did not have the line

//= require tree

in my application.js. So for me the installer just did not work.

So that is why, when I went looking to your test-project, I saw the missing lines and thought they had to be included manually.

Ah right, now I see the problem. I did not have the line

//= require tree

in my application.js. So for me the installer just did not work.

So that is why, when I went looking to your test-project, I saw the missing lines and thought they had to be included manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment