Ruote and rails

60 views
Skip to first unread message

emc_lab

unread,
May 27, 2012, 11:45:09 PM5/27/12
to ruote
Hi,

We are looking at ruote for adding workflow to our rails 3.1.4 app
with html/erb. What's the best approach for us to add ruote to our
rails 3.1.4 app?

The ruotekit is based sinatra and haml and there are some rails
examples which are based on ruotekit. But we are hesitating to
introduce a new framework sinatra into our rails app. We want to see
if there is option to integrate ruote and rails together.

Thanks.
-emclab

emc_lab

unread,
May 27, 2012, 11:52:17 PM5/27/12
to ruote
Hi,

We posted the similar questions before. We have been spending time on
ruotekit and other ruotekit based rails examples with some progress.
However we don't feel comfortable to introduce sinatra into our rails
app concerning the learning curve for two frameworks. We want to focus
on rails. The purpose of this post is to see if someone can provide
solid example or path with detail for the integration (between ruote
and rails only). Thanks so much.

rebo

unread,
May 28, 2012, 1:00:44 AM5/28/12
to openwfe...@googlegroups.com
You can use Ruote without Ruote-Kit.  Ruote-Kit is an implementation of a ruote client/wrapper that is written in sinatra. I find it useful to still include in my rails app as a debugging/administrative tool.  However you dont need to and shouldn't have to use it at all.

Just assign access via a constant to Ruote::Engine.new(RUOTE_STORAGE) (or whatever storage you are using) in ruote_initializer.rb and you will be fine.

emc_lab

unread,
May 28, 2012, 10:09:44 AM5/28/12
to ruote
Rebo,

Thanks for the suggestion. We are new to ruote. If you happen to have
any posts or documents about the integration of such, please let us
know.

Regards
-emclab

John Mettraux

unread,
May 28, 2012, 9:16:29 PM5/28/12
to openwfe...@googlegroups.com

On Mon, May 28, 2012 at 07:09:44AM -0700, emc_lab wrote:
>
> Thanks for the suggestion. We are new to ruote. If you happen to have
> any posts or documents about the integration of such, please let us
> know.

Hello,

Rebo is right.

I've started a page about integration in Ruby On Rails, it's at:

http://ruote.rubyforge.org/with_rails.html

It's not yet complete, I still have to add a section about participant
registration (should it go in the initializer or the worker script) and
re-read it.

If you need clarifications about it (all of you), please manifest yourselves
here.


Thanks in advance for the help,

--
John Mettraux - http://lambda.io/jmettraux

Reply all
Reply to author
Forward
0 new messages