Reputation: 15501
Im in the need of integrating a cramp ( web sockets based chat app ) with an existing rails app.
What are the steps to integrate ruby app with views to rails app? move all views to the rails app then write an api to communicate with it?
Upvotes: 0
Views: 226
Reputation: 647
If your app is a Rack app you can just mount it in your routes file.
See this Railscast for a practical example.
I've had some trouble sharing views through Rack, so you may want to see if you can write it in to a Rails Engine which gives you more access to the containing Rails app.
Upvotes: 1