Question

Hi guys, I have just installed blogit into my Rails 4 application. When I go to /blog I get routing error of every single route I have got. I get "undefined local variable or method". It is like that it won't load my routes at all.

Not sure if it make sense though. Please let me know what you want me to put here so you guys can have a look.

I have current_user defined in ApplicationController. In the installation what I didn't understand is "declare which of your models acts as blogger in your app". That might be the issue.

Thanks in advance.

Was it helpful?

Solution

In case someone is looking for this.

Answer trail is in here. It is Explained fully

So just to sum it up, I added main_app to all of the links in the view and all are good. Basically when you are in the /blog you will be in the engine, and you need to tell the app the correct path. Thanks to emaxon.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top