your problem it's related with CORS.
A little recipe to solve this:
1. install rack-cors gem. On your Gemfile:
# Gemfile
gem 'rack-cors', :require => 'rack/cors'
2. on shell:
bundle install
3. on your application.rb:
# application.rb
...
config.middleware.insert_before 0, "Rack::Cors" do
On Friday, 16 October 2015 03:37:03 UTC-4, Ruby-Forum.com User wrote:
>
> I am having a devise user model.
>
> To login I am using twitter-bootstrap modal.The modal is by default
> hidden and shown only after an rails default ajax request is send to the
> server.
>
> It works fine with localh
Sorry to tell you, but this behavior is by design. You'll have to put it
on the same subdomain as the accessed page or use a workaround like an
API. This is actually a limitation of AJAX.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Go
3 matches
Mail list logo