I'm building Rails 4 application. It's mostly json api so I'm also using rails-api gem in my app. I have ApiControllers which extends ActionController::API.
Now I need to add some classic server render HTML templates. Controllers for those renders extends ActionController::Base.
I have problem, that rails are not setting cookie in browser, so my sessions are not working at all. I tried to start new Rails 4 app and sessions in it and everything works fine. I don't know why it is not working in my application. set-cookie header is missing. Any ideas?