Rudi
Rudi

Reputation: 1587

mixing pure ruby on rails and ember pages

I'm starting a new web app that will be developed in Ember. Like any web site there will be a lot of static pages like the home page, an about page, authentication pages etc.

What is the best approach? To do the static pages with standard RoR and have one page where the app is running, or do every page with Ember?

And if the Ember app is on page "theapp.html.erb" how do I tell the Router to kick in only on that page?

Upvotes: 4

Views: 456

Answers (1)

stravid
stravid

Reputation: 1009

In your case I would develop the website with Ruby on Rails. Then on the page where the Ember app should live, I would include the necessary JavaScript. This way the Ember app is only kicked of at the correct page.

Upvotes: 2

Related Questions