Setting up the Ruby dev environment on Mavericks
... should work on Yosemite as well. Add a comment here if you find any problems.
Why would I want to do that?
- You want to run guard
- You want use Sublime plugins (like RSpec or Guard plugins)
| class API::V1::BaseController < ApplicationController | |
| skip_before_filter :verify_authenticity_token | |
| before_filter :cors_preflight_check | |
| after_filter :cors_set_access_control_headers | |
| def cors_set_access_control_headers | |
| headers['Access-Control-Allow-Origin'] = '*' | |
| headers['Access-Control-Allow-Methods'] = 'POST, GET, PUT, DELETE, OPTIONS' |
... should work on Yosemite as well. Add a comment here if you find any problems.
brew