# Development

**URL:** https://meta.discourse.org/c/dev/7.md?page=135

[Latest](https://meta.discourse.org/latest.md) · [Categories](https://meta.discourse.org/categories.md) · [Tags](https://meta.discourse.org/tags.md)

**Page:** 136

---

## [Incorporating Discourse into Existing Rails/Heroku Project](https://meta.discourse.org/t/incorporating-discourse-into-existing-rails-heroku-project/57384)

<div class="topic-metadata">

**Author:** [@Jackson\_Cunningham](https://meta.discourse.org/u/Jackson_Cunningham)\
**Replies:** 0\
**Last updated:** [February 14, 2017, 8:06pm UTC](https://meta.discourse.org/t/incorporating-discourse-into-existing-rails-heroku-project/57384 "2017-02-14T20:06:37Z")

</div>

We have an existing rails app on Heroku and we’re looking to incorporate a community component. We were going to build this from scratch but then discovered Discourse and it has all the features we need. The ideal setup…

---

## [Acceptance test content is present on page](https://meta.discourse.org/t/acceptance-test-content-is-present-on-page/57292)

<div class="topic-metadata">

**Author:** [@rimian](https://meta.discourse.org/u/rimian)\
**Replies:** 6\
**Last updated:** [February 14, 2017, 5:55am UTC](https://meta.discourse.org/t/acceptance-test-content-is-present-on-page/57292 "2017-02-14T05:55:31Z")

</div>

What’s the best way to (QUnit) assert an element on the page has some content in it? This passes: ok($.trim($('.foo').text()) == 'bar', 'content bar renders on page'); But isn’t very practical. Is there a better way?

---

## [Refactor MessageBuilder to put mail footer 'action links' always in signature?](https://meta.discourse.org/t/refactor-messagebuilder-to-put-mail-footer-action-links-always-in-signature/57212)

<div class="topic-metadata">

**Author:** [@rriemann](https://meta.discourse.org/u/rriemann)\
**Replies:** 2\
**Last updated:** [February 11, 2017, 7:06am UTC](https://meta.discourse.org/t/refactor-messagebuilder-to-put-mail-footer-action-links-always-in-signature/57212 "2017-02-11T07:06:58Z")

</div>

Hello, I recently had a look into message\_builder.rb to check out how the last few lines of most mails are generated: \[mail body\] --- \[Visit Topic\](https://meta.discourse.org/t/how-to-enable-piwik-analytics-on-discour…

---

## [Plugin with custom gems](https://meta.discourse.org/t/plugin-with-custom-gems/57190)

<div class="topic-metadata">

**Author:** [@leo.proctor](https://meta.discourse.org/u/leo.proctor)\
**Replies:** 12\
**Last updated:** [February 10, 2017, 1:48pm UTC](https://meta.discourse.org/t/plugin-with-custom-gems/57190 "2017-02-10T13:48:02Z")

</div>

I’ve some custom gems in my plugin. it works fine on local machine. but on prod while following your app.yml format for installing private plugins, it fails with following error. I, \[2017-02-09T17:13:20.015101 #13\] IN…

---

## [Link a rails object/model to discourse so that a new topic is created when an object is created](https://meta.discourse.org/t/link-a-rails-object-model-to-discourse-so-that-a-new-topic-is-created-when-an-object-is-created/57191)

<div class="topic-metadata">

**Author:** [@Mie\_Goreng](https://meta.discourse.org/u/Mie_Goreng)\
**Replies:** 0\
**Last updated:** [February 10, 2017, 3:58am UTC](https://meta.discourse.org/t/link-a-rails-object-model-to-discourse-so-that-a-new-topic-is-created-when-an-object-is-created/57191 "2017-02-10T03:58:22Z")

</div>

If I have an Article model in Rails with attributes title, image and content are there any existing plugins that would allow me to create a new topic in discourse using these attributes?

---

## [Updating and saving topic on button press results in 404 not found](https://meta.discourse.org/t/updating-and-saving-topic-on-button-press-results-in-404-not-found/56922)

<div class="topic-metadata">

**Author:** [@Janno\_Liivak](https://meta.discourse.org/u/Janno_Liivak)\
**Replies:** 4\
**Last updated:** [February 9, 2017, 8:50pm UTC](https://meta.discourse.org/t/updating-and-saving-topic-on-button-press-results-in-404-not-found/56922 "2017-02-09T20:50:48Z")

</div>

I have a plugin which places a button after main buttons. When pressing a button I would like to update topic and save it. But topic.save(props); results in 404 not found. Debugging reveals that Discourse is trying to PU…

---

## [Post cook for images?](https://meta.discourse.org/t/post-cook-for-images/57148)

<div class="topic-metadata">

**Author:** [@fearlessfrog](https://meta.discourse.org/u/fearlessfrog)\
**Replies:** 1\
**Last updated:** [February 9, 2017, 3:09am UTC](https://meta.discourse.org/t/post-cook-for-images/57148 "2017-02-09T03:09:58Z")

</div>

I have a very simple plugin (server-side) I was playing around with. For this part of the call: on(:post\_created) do |post, params| I use the post.raw to put some content in: post.raw = "@#{post.user.username} says h…

---

## [Regarding the installation - docker](https://meta.discourse.org/t/regarding-the-installation-docker/56871)

<div class="topic-metadata">

**Author:** [@Kartheek\_kark](https://meta.discourse.org/u/Kartheek_kark)\
**Replies:** 5\
**Last updated:** [February 7, 2017, 12:58am UTC](https://meta.discourse.org/t/regarding-the-installation-docker/56871 "2017-02-07T00:58:42Z")

</div>

Good morning. I have an experience of ruby on rails for 4 months.I have no knowledge of docker.Hence I would like to know if developers who want to contribute can install using docker? 1.I have been facing a problem wi…

---

## [Notification button for Category](https://meta.discourse.org/t/notification-button-for-category/56935)

<div class="topic-metadata">

**Author:** [@Alavi1412](https://meta.discourse.org/u/Alavi1412)\
**Replies:** 0\
**Last updated:** [February 5, 2017, 11:05am UTC](https://meta.discourse.org/t/notification-button-for-category/56935 "2017-02-05T11:05:17Z")

</div>

one widget exits called topic-notifications-button. This widget is used for button for each topics that users can watch or track or … a topic but I need a widget like this for category but nothing was found except this a…

---

## [Add tags to the site.json, if tags plugin is installed and active](https://meta.discourse.org/t/add-tags-to-the-site-json-if-tags-plugin-is-installed-and-active/41290)

<div class="topic-metadata">

**Author:** [@meglio](https://meta.discourse.org/u/meglio)\
**Replies:** 3\
**Last updated:** [February 3, 2017, 3:59pm UTC](https://meta.discourse.org/t/add-tags-to-the-site-json-if-tags-plugin-is-installed-and-active/41290 "2017-02-03T15:59:47Z")

</div>

Currently, site.json API does not list tags, yet it lists can\_tag\_topics, can\_create\_tag and tags\_filter\_regexp . Let’s add the tags list to the site.json as well.

---

## [PluginStore API - get row by attribute](https://meta.discourse.org/t/pluginstore-api-get-row-by-attribute/46251)

<div class="topic-metadata">

**Author:** [@EndruK](https://meta.discourse.org/u/EndruK)\
**Replies:** 4\
**Last updated:** [February 3, 2017, 9:30am UTC](https://meta.discourse.org/t/pluginstore-api-get-row-by-attribute/46251 "2017-02-03T09:30:48Z")

</div>

Hello, is there any better way to get data from the plugin store not only by the key? For example, I have an attribute “name” and I want to get only the row out of the plugin store with a given name. For now I just ge…

---

## [Development server consistently dying - 'V8 Isolate was forked'](https://meta.discourse.org/t/development-server-consistently-dying-v8-isolate-was-forked/55878)

<div class="topic-metadata">

**Author:** [@gdpelican](https://meta.discourse.org/u/gdpelican)\
**Replies:** 6\
**Last updated:** [February 2, 2017, 8:07pm UTC](https://meta.discourse.org/t/development-server-consistently-dying-v8-isolate-was-forked/55878 "2017-02-02T20:07:02Z")

</div>

I’ve been having some fairly consistent trouble with the Discourse development server throwing the following error message, which appears to kill the server pid. WARNING: V8 isolate was forked, it can not be disposed an…

---

## [Best practices for populating user field via a link?](https://meta.discourse.org/t/best-practices-for-populating-user-field-via-a-link/56697)

<div class="topic-metadata">

**Author:** [@DanielMarquard](https://meta.discourse.org/u/DanielMarquard)\
**Replies:** 0\
**Last updated:** [February 1, 2017, 6:43am UTC](https://meta.discourse.org/t/best-practices-for-populating-user-field-via-a-link/56697 "2017-02-01T06:43:35Z")

</div>

I want users to be able to click a link containing their user ID in a different application so that it can be stored in their Discourse profile. For example, https://discourse.example.com/script?uid=1 It’s a simple idea…

---

## [Getting Category's custom field value from Topic](https://meta.discourse.org/t/getting-categorys-custom-field-value-from-topic/56571)

<div class="topic-metadata">

**Author:** [@Janno\_Liivak](https://meta.discourse.org/u/Janno_Liivak)\
**Replies:** 4\
**Last updated:** [January 30, 2017, 4:42pm UTC](https://meta.discourse.org/t/getting-categorys-custom-field-value-from-topic/56571 "2017-01-30T16:42:24Z")

</div>

I have created custom category field enable\_bump\_topic (by example of @SamSaffron’s discourse-solved plugin). But I don’t seem to get how could I access this custom field when on Topic. I created canBump computed propert…

---

## [Trouble getting a top level page to Ember](https://meta.discourse.org/t/trouble-getting-a-top-level-page-to-ember/56007)

<div class="topic-metadata">

**Author:** [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Replies:** 17\
**Last updated:** [January 27, 2017, 7:57pm UTC](https://meta.discourse.org/t/trouble-getting-a-top-level-page-to-ember/56007 "2017-01-27T19:57:25Z")

</div>

I’ve had fairly good experiences using plugin-outlets, but I wanted to improve my Discourse plugin dev chops. So I decided I’d try to see if I could put together Ruby and Ember code by following this (that seems to be m…

---

## [FullContact Plugin to display data-mined social network data on users to admins](https://meta.discourse.org/t/fullcontact-plugin-to-display-data-mined-social-network-data-on-users-to-admins/56409)

<div class="topic-metadata">

**Author:** [@ChrisBeach](https://meta.discourse.org/u/ChrisBeach)\
**Replies:** 1\
**Last updated:** [January 27, 2017, 10:05am UTC](https://meta.discourse.org/t/fullcontact-plugin-to-display-data-mined-social-network-data-on-users-to-admins/56409 "2017-01-27T10:05:52Z")

</div>

Continuing the discussion from User page with custom data from external DB: I’m considering writing a plugin to load data from the FullContact Person API for each new sign-up on my forum. This would be available to admi…

---

## [User page with custom data from external DB](https://meta.discourse.org/t/user-page-with-custom-data-from-external-db/56351)

<div class="topic-metadata">

**Author:** [@Rojoss](https://meta.discourse.org/u/Rojoss)\
**Replies:** 5\
**Last updated:** [January 26, 2017, 2:41pm UTC](https://meta.discourse.org/t/user-page-with-custom-data-from-external-db/56351 "2017-01-26T14:41:05Z")

</div>

We use Discourse as a forum for our game and I’d like to create custom user pages with data from the game. Such as rankings, stats, achievements etc. I’ve followed the setup tutorials and managed to setup the developme…

---

## [Using a Discourse component in a plugin](https://meta.discourse.org/t/using-a-discourse-component-in-a-plugin/56155)

<div class="topic-metadata">

**Author:** [@jgujgu](https://meta.discourse.org/u/jgujgu)\
**Replies:** 19\
**Last updated:** [January 26, 2017, 4:07pm UTC](https://meta.discourse.org/t/using-a-discourse-component-in-a-plugin/56155 "2017-01-26T16:07:23Z")

</div>

I have a question about reusing Discourse “core” Ember components in plugins. More particularly, I ran into trouble today trying to put a “signup” d-button into a plugin template. Here is where I tried to do: And this…

---

## [Add plugin-outlet for user main navigation](https://meta.discourse.org/t/add-plugin-outlet-for-user-main-navigation/56075)

<div class="topic-metadata">

**Author:** [@joebuhlig](https://meta.discourse.org/u/joebuhlig)\
**Replies:** 0\
**Last updated:** [January 20, 2017, 1:21pm UTC](https://meta.discourse.org/t/add-plugin-outlet-for-user-main-navigation/56075 "2017-01-20T13:21:22Z")

</div>

I’m working on a couple plugins where I’d like to add a menu item on the user level. To me it makes sense to have a way to add to this here: Any time we have something that is tied to the user, we could create a menu…

---

## [How Regenerate droped table post\_search\_data?](https://meta.discourse.org/t/how-regenerate-droped-table-post-search-data/55953)

<div class="topic-metadata">

**Author:** [@veer](https://meta.discourse.org/u/veer)\
**Replies:** 10\
**Last updated:** [January 20, 2017, 10:26am UTC](https://meta.discourse.org/t/how-regenerate-droped-table-post-search-data/55953 "2017-01-20T10:26:52Z")

</div>

By mistake i delete the table post\_search\_data in discourse data, How this table can be regenerated ? As this table depend upon the table posts, there might be a way to regenrate it, please help.

---

## [Installed Discourse. Need help understanding code structure](https://meta.discourse.org/t/installed-discourse-need-help-understanding-code-structure/56011)

<div class="topic-metadata">

**Author:** [@puneetgupta123](https://meta.discourse.org/u/puneetgupta123)\
**Replies:** 2\
**Last updated:** [January 19, 2017, 7:04pm UTC](https://meta.discourse.org/t/installed-discourse-need-help-understanding-code-structure/56011 "2017-01-19T19:04:53Z")

</div>

Forgive me, if this is a really juvenile question. There are routes defined in both ruby on Rails and ember. How the routing is working? Similarly, The views in Ruby on Rail defines the html code and similarly template…

---

## [Is there a block diagram that documents how Discourse works](https://meta.discourse.org/t/is-there-a-block-diagram-that-documents-how-discourse-works/56037)

<div class="topic-metadata">

**Author:** [@JagWaugh](https://meta.discourse.org/u/JagWaugh)\
**Replies:** 2\
**Last updated:** [January 19, 2017, 4:09pm UTC](https://meta.discourse.org/t/is-there-a-block-diagram-that-documents-how-discourse-works/56037 "2017-01-19T16:09:39Z")

</div>

On a similar note, I haven’t managed to find a block diagram of how the system is put together. A block diagram might help new mods and admins get an overview of how a discourse “appliance” works. It would eliminate some…

---

## [Building Discourse Mobile](https://meta.discourse.org/t/building-discourse-mobile/55977)

<div class="topic-metadata">

**Author:** [@n120](https://meta.discourse.org/u/n120)\
**Replies:** 0\
**Last updated:** [January 18, 2017, 5:16pm UTC](https://meta.discourse.org/t/building-discourse-mobile/55977 "2017-01-18T17:16:25Z")

</div>

I’ve been having trouble building Discourse Mobile on Windows 10. I’ve been running into the same issue as documented here: https://github.com/discourse/DiscourseMobile/issues/21. I was curious if anyone could please pro…

---

## [Github embed plugin](https://meta.discourse.org/t/github-embed-plugin/55838)

<div class="topic-metadata">

**Author:** [@Slind](https://meta.discourse.org/u/Slind)\
**Replies:** 1\
**Last updated:** [January 16, 2017, 1:50pm UTC](https://meta.discourse.org/t/github-embed-plugin/55838 "2017-01-16T13:50:10Z")

</div>

Hi there, discourse nicely embeds a quick summary of github links e.g. https://github.com/discourse/discourse/pull/4657 https://github.com/discourse/discourse-cakeday/issues/1 Is this a custom development or a librar…

---

## [Plugin Development: Beyond the Basics?](https://meta.discourse.org/t/plugin-development-beyond-the-basics/55754)

<div class="topic-metadata">

**Author:** [@Ebs](https://meta.discourse.org/u/Ebs)\
**Replies:** 5\
**Last updated:** [January 15, 2017, 10:39am UTC](https://meta.discourse.org/t/plugin-development-beyond-the-basics/55754 "2017-01-15T10:39:11Z")

</div>

Apologies if this is in the wrong section. I couldn’t start a new topic in Plugins or Howto. I’m currently trying my hand at a new (simple) plugin. A folder of images will be ‘globbed’ at server startup and an array of…

---

## [Vagrant VM: Add \`cd /vagrant\` to ~/.profile](https://meta.discourse.org/t/vagrant-vm-add-cd-vagrant-to-profile/55755)

<div class="topic-metadata">

**Author:** [@claas](https://meta.discourse.org/u/claas)\
**Replies:** 0\
**Last updated:** [January 14, 2017, 10:31am UTC](https://meta.discourse.org/t/vagrant-vm-add-cd-vagrant-to-profile/55755 "2017-01-14T10:31:20Z")

</div>

If you follow the Discourse Developer Install Guide (Vagrant), you will always need to cd /vagrant after vagrant ssh. Therefore I added this command to the ~/.profile within the Vagrant VM, so that I never have to do th…

---

## [Triggering Page loads?](https://meta.discourse.org/t/triggering-page-loads/55680)

<div class="topic-metadata">

**Author:** [@n4ru](https://meta.discourse.org/u/n4ru)\
**Replies:** 1\
**Last updated:** [January 13, 2017, 7:23pm UTC](https://meta.discourse.org/t/triggering-page-loads/55680 "2017-01-13T19:23:53Z")

</div>

For some specific reasons, we need to trigger certain navigation via Javascript. Manually reloading the page obviously works, but this is inconsistent with the rest of the site with reloads parts of the page without actu…

---

## [Can't upload backup - run out of disk space](https://meta.discourse.org/t/cant-upload-backup-run-out-of-disk-space/42017)

<div class="topic-metadata">

**Author:** [@precessor](https://meta.discourse.org/u/precessor)\
**Replies:** 2\
**Last updated:** [January 13, 2017, 3:51pm UTC](https://meta.discourse.org/t/cant-upload-backup-run-out-of-disk-space/42017 "2017-01-13T15:51:48Z")

</div>

I’ve followed the instructions (this and this) to get a local developer Discourse running. It seems to have worked, and I am browsing at http://localhost:4000/ as admin. I would now like to upload the backup of my workin…

---

## [Single database multiple apps](https://meta.discourse.org/t/single-database-multiple-apps/55650)

<div class="topic-metadata">

**Author:** [@Malik\_Rumi](https://meta.discourse.org/u/Malik_Rumi)\
**Replies:** 3\
**Last updated:** [January 13, 2017, 9:24am UTC](https://meta.discourse.org/t/single-database-multiple-apps/55650 "2017-01-13T09:24:55Z")

</div>

I’m not sure what the proper category for this question is, so admins, feel free to move it as needed. I’ve been looking at the SSO stuff, but assuming that issue is successfully resolved, are there any issues with shar…

---

## [Routes added under existing routes wont work](https://meta.discourse.org/t/routes-added-under-existing-routes-wont-work/55640)

<div class="topic-metadata">

**Author:** [@piratdavid](https://meta.discourse.org/u/piratdavid)\
**Replies:** 1\
**Last updated:** [January 12, 2017, 10:02pm UTC](https://meta.discourse.org/t/routes-added-under-existing-routes-wont-work/55640 "2017-01-12T22:02:45Z")

</div>

After updating Discourse I am having trouble getting routes that are created under an existing route to work. These are put under the ‘user’ resource. Has anything changed with the route maps. Here are my route definitio…

[Previous page](https://meta.discourse.org/c/dev/7.md?page=134)

[Next page](https://meta.discourse.org/c/dev/7.md?page=136)
