How to have different simple_form configuration between a Rails app and a mounted engine ?

101 views
Skip to first unread message

Virudson Thitilertdecha

unread,
Nov 12, 2013, 5:15:38 AM11/12/13
to plataformate...@googlegroups.com
Hello guys,

We have a configuration problem using simple_form in our main Rails app and a Rails engine. 
Here is the structure of our project.
1) Main App: using simple_form with twitter bootstrap.
2) Engine: this an old application mounted to the main app as engine, and it use simple_form but not Twitter Boostrap
The problem is that our engine is using the configuration from the main app (wrapper from twitter bootstrap) while we
need to have 2 separate configurations for simple_form in the main app and the engine 
Anybody has this problem before ? Anyways any advice or help is appreciated :-)
Thank by advance

Rafael Mendonça França

unread,
Nov 12, 2013, 10:55:34 AM11/12/13
to PlataformaTec - SimpleForm
Currently there is no way to do this. The Simple Form configurations are global and in the Simple Form class.

--
You received this message because you are subscribed to the Google Groups "SimpleForm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plataformatec-simp...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages