# Use Gem Ember Rails or run Ember separately

**URL:** <https://discuss.emberjs.com/t/use-gem-ember-rails-or-run-ember-separately/9347>\
**Category:** Uncategorized\
**Created:** [December 24, 2015, 11:11am UTC](https://discuss.emberjs.com/t/use-gem-ember-rails-or-run-ember-separately/9347 "2015-12-24T11:11:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon74886000](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@anon74886000](https://discuss.emberjs.com/u/anon74886000)\
**Post date:** [December 24, 2015, 11:11am UTC](https://discuss.emberjs.com/t/use-gem-ember-rails-or-run-ember-separately/9347/1 "2015-12-24T11:11:43Z")

</div>

Hi, I want to develop a Rails application with Ember, this is my first approach with this JS Framework. My question is if is better to use the ember gem for rails or run ember separately form the main application? If I use Gem Ember the advantage?

---

<div class="post-metadata">

**Author:** ![fighterleslie](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/fighterleslie/32/11799_2.png) [@fighterleslie](https://discuss.emberjs.com/u/fighterleslie)\
**Post date:** [December 24, 2015, 1:49pm UTC](https://discuss.emberjs.com/t/use-gem-ember-rails-or-run-ember-separately/9347/2 "2015-12-24T13:49:06Z")

</div>

Well, that depends. Both have pros and cons, and it’s hard to make a decision as per your description. But if it’s a brand new project and if you think Ember can handle all the application state, separation of concerns would generally be a better choice. FYI, here is a post from thoughtbot: [migrating from ember-rails to ember-cli](https://robots.thoughtbot.com/migrating-from-ember-rails-to-ember-cli).

---

<div class="post-metadata">

**Author:** ![nahtnam](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/nahtnam/32/9420_2.png) [@nahtnam](https://discuss.emberjs.com/u/nahtnam)\
**Post date:** [December 24, 2015, 8:28pm UTC](https://discuss.emberjs.com/t/use-gem-ember-rails-or-run-ember-separately/9347/3 "2015-12-24T20:28:22Z")

</div>

From personal experience, I can tell you that having them separate is better. It can scale better, build times are shorter, easier to work with, and you can host them separately.

I feel like the last point is a big one because now my node app only has to act like an api and doesn’t have to worry about serving assets.

---

<div class="post-metadata">

**Author:** ![anon74886000](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@anon74886000](https://discuss.emberjs.com/u/anon74886000)\
**Post date:** [January 22, 2016, 4:33pm UTC](https://discuss.emberjs.com/t/use-gem-ember-rails-or-run-ember-separately/9347/4 "2016-01-22T16:33:37Z")

</div>

Yes but in this why i can with only command generate class,model ecc…for ember and rails in only one pass…And i think maybe is better for the model level

---

<div class="post-metadata">

**Author:** ![vikram7](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/vikram7/32/12393_2.png) [@vikram7](https://discuss.emberjs.com/u/vikram7)\
**Post date:** [January 25, 2016, 7:03pm UTC](https://discuss.emberjs.com/t/use-gem-ember-rails-or-run-ember-separately/9347/5 "2016-01-25T19:03:12Z")

</div>

This is very app specific, but broadly speaking, I think separating your Rails and Ember concerns will be valuable regardless. Rails serves as your API and Ember on the client side. [Here](http://discuss.emberjs.com/t/ember-cli-or-ember-rails-for-and-ember-app-in-a-rails-web-app/7398) is another discussion about this.
