I'm trying to install monologue on a web application and I'm facing a problem that I'm not sure about how to solve it.
Here's my problem :
My Rails Application is using I18n, in order to manage few languages.
I added monologue to the Gemfile, installed monologue, created a user ...
The problem is coming when I log myself to get to the admin panel.
When I submit the form, I've got "undefined method `locale' for #<Monologue::User:0xd4d9510>".
So basically if I understand it well, Monologue does not recognize the locale variable indicating the current language.
My route for Monologue is :
mount Monologue::Engine, :at => '/blog'
In order to access the panel admin I actually go to :
localhost/blog/monologue
With this route, the problem exist because there's no locale.
When I get to :
localhost/fr/blog/monologue
There's no more error cause the locale is set as 'fr'.
I check db/migrate to see if Monologue where actually creating an other User table but apparently it does not.
Yet in my application I have a locale column on my User table, so I don't understand why Monologue's saying to me that locale is a undefined method.
Can you please help me ?
Cordially,
Thomas.
--You received this message because you are subscribed to the Google Groups "Monologue" group.To unsubscribe from this group and stop receiving emails from it, send an email to monologue-rb...@googlegroups.com.For more options, visit https://groups.google.com/groups/opt_out.
However I've got one more question.
Is it possible to take my User table to use it in Monologue ?
Cordially,
Thomas
I'll let you know if it works !
Best regards,
Thomas
It's all working except for one thing.
When I try to post a new monologue with content in all the inputs (TinyMCE for the content) I actually got a message error saying that content is required (I swear content was in it ^^ ).
Can you help me with this error ?
Cordially,
Thomas
The point was that I worked with compiled assets.
TinyMCE is used in monologue but it wasn't (correctly) compiled.
I just added the gem "tinymce-rails" and bundle update.
Everything after that worked and still work atm ^^.
Thanks for the attention this afternoon.
Best regards o7,
Thomas