A new style forum for tiny community as Rails Engine. You can mount this in you apps.
- Rails 3.1
- Mongoid 2.4.x or 3.0.0.rc
- rails_autolink
-
In your Gemfile:
gem "homeland"
-
Install through this command:
rails g homeland:install
-
Change your application.html.erb
before:
<%= link_to "Home", root_path %>
<%= link_to "Posts", posts_path %>
after:
```erb
<%= link_to "Home", main_app.root_path %>
<%= link_to "Home", main_app.posts_path %>
```
-
Add this to your routes.rb:
mount Homeland::Engine, :at => "/bbs"
rails g homeland:views
$ bundle install
$ cd spec/dummy
$ rails s
INFO WEBrick 1.3.1
INFO ruby 1.9.3 (2012-04-20) [x86_64-darwin11.4.0]
INFO WEBrick::HTTPServer#start: pid=9720 port=3000
Thanks V2EX forum idea. A new style forum for tiny community as Rails Engine. You can mount this in you apps.