First, run apk add --no-cache curl to install curl. Then run:
curl -L https://gist.githubusercontent.com/creepinson/fcd2dc09f614bf11c2aef6d3843d3b76/raw/318b451c5c350b7e159983cea435966770667c75/install.sh | bashTo install magic-wormhole.
First, run apk add --no-cache curl to install curl. Then run:
curl -L https://gist.githubusercontent.com/creepinson/fcd2dc09f614bf11c2aef6d3843d3b76/raw/318b451c5c350b7e159983cea435966770667c75/install.sh | bashTo install magic-wormhole.
| # | |
| # At CoverHound, we use conditional validations all over the form. However, there is no proper way to do | |
| # this in Rails. Instead, we can provide an array of attributes (validated_fields attribute) | |
| # and ensure they are the only ones to get validated. | |
| # | |
| module ConditionalValidations | |
| attr_accessor :validated_fields | |
| def field_is_required?(field) |
| /** | |
| * Application helpers | |
| * requires Underscore.js | |
| */ | |
| var ApplicationHelpers = { | |
| /** | |
| * Railsify object's keys to play nice with default Rails controller setup. | |
| * Rails default controller setup expects params submitted via PUT / POST as: | |
| * | |
| * (POST) {'my_model[attr1]' : 'value1', ... etc. } |
| global | |
| log 127.0.0.1 local0 | |
| log 127.0.0.1 local0 notice | |
| maxconn 4096 | |
| nbproc 1 | |
| pidfile /var/run/haproxy.pid | |
| user haproxy | |
| group haproxy |
| rails_root = ENV['RAILS_ROOT'] || File.dirname(__FILE__) + '/../..' | |
| rails_env = ENV['RAILS_ENV'] || 'development' | |
| resque_config = YAML.load_file(rails_root + '/config/resque.yml') | |
| Resque.redis = resque_config[rails_env] | |
| #secure the admin view of resque | |
| Resque::Server.use(Rack::Auth::Basic) do |user, password| | |
| password == "secret" | |
| end |
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |