fix form stuff
This commit is contained in:
parent
3951bf3b8e
commit
0a07042797
@ -1,6 +1,6 @@
|
|||||||
GIT
|
GIT
|
||||||
remote: https://github.com/HubFeenixMakers/merged
|
remote: https://github.com/HubFeenixMakers/merged
|
||||||
revision: 05ee69ce24b7c5a593b8c57c87a3e1f8e50f3b32
|
revision: accb6682675f92eed6e1c306995017b1c8da1289
|
||||||
specs:
|
specs:
|
||||||
merged (0.1.0)
|
merged (0.1.0)
|
||||||
active_hash
|
active_hash
|
||||||
@ -294,7 +294,7 @@ GEM
|
|||||||
rails-dom-testing (2.0.3)
|
rails-dom-testing (2.0.3)
|
||||||
activesupport (>= 4.2.0)
|
activesupport (>= 4.2.0)
|
||||||
nokogiri (>= 1.6)
|
nokogiri (>= 1.6)
|
||||||
rails-html-sanitizer (1.4.4)
|
rails-html-sanitizer (1.5.0)
|
||||||
loofah (~> 2.19, >= 2.19.1)
|
loofah (~> 2.19, >= 2.19.1)
|
||||||
rails_gravatar (1.0.4)
|
rails_gravatar (1.0.4)
|
||||||
actionview
|
actionview
|
||||||
|
1
config/initializers/lib.rb
Normal file
1
config/initializers/lib.rb
Normal file
@ -0,0 +1 @@
|
|||||||
|
require "form_handler"
|
@ -10,8 +10,9 @@ Rails.application.routes.draw do
|
|||||||
|
|
||||||
mount Thredded::Engine => '/forum'
|
mount Thredded::Engine => '/forum'
|
||||||
|
|
||||||
mount Merged::Engine => "/merged"
|
mount Merged::Engine => "/merged" unless Rails.env.production?
|
||||||
|
|
||||||
|
post "/form" , to: "merged/form#post" , as: :post_form
|
||||||
get "/news/:id" , to: "merged/view#page" , id: :id , as: :view_blog
|
get "/news/:id" , to: "merged/view#page" , id: :id , as: :view_blog
|
||||||
get ":id" , to: "merged/view#page" , id: :id , as: :view_page
|
get ":id" , to: "merged/view#page" , id: :id , as: :view_page
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user