Ctags command for rails project with RVM
$ ctags --extra=+f --exclude=.git --exclude=log --exclude=tmp --exclude=public --exclude=spec/fixtures --exclude=db --langmap="ruby:+.rake.builder.rjs" --languages=-javascript -R *
TM_RUBY: /Users/Jun/.rvm/bin/rvm-auto-ruby | |
GEM_HOME: env | grep GEM_HOME | awk '{ sub(/GEM_HOME=/, ""); print }' | |
GEM_PATH: env | grep GEM_PATH | awk '{ sub(/GEM_PATH=/, ""); print }' |
group :development do | |
gem 'capistrano' | |
gem 'capistrano-ext' | |
gem 'capistrano-gitflow' | |
gem 'capistrano_colors' | |
end |
Ctags command for rails project with RVM
$ ctags --extra=+f --exclude=.git --exclude=log --exclude=tmp --exclude=public --exclude=spec/fixtures --exclude=db --langmap="ruby:+.rake.builder.rjs" --languages=-javascript -R *
/usr/local/Cellar/rbenv/0.3.0/versions/rbx-1.2.4/bin/rbx extconf.rb | |
creating Makefile | |
make | |
gcc -I. -I/usr/local/Cellar/rbenv/0.3.0/versions/rbx-1.2.4/include -I/usr/local/Cellar/rbenv/0.3.0/versions/rbx-1.2.4/include -I. -I'/usr/local/Cellar/rbenv/0.3.0/versions/rbx-1.2.4/include' -fPIC -ggdb3 -O2 -fPIC -c ruby18_source_location.c | |
ruby18_source_location.c:2:18: error: node.h: No such file or directory | |
ruby18_source_location.c:24: error: expected specifier-qualifier-list before ‘NODE’ | |
ruby18_source_location.c:28: error: expected specifier-qualifier-list before ‘NODE’ | |
ruby18_source_location.c: In function ‘Init_ruby18_source_location’: | |
ruby18_source_location.c:54: error: ‘rb_cUnboundMethod’ undeclared (first use in this function) |
namespace :compass do | |
desc 'Updates stylesheets if necessary from their Sass templates.' | |
task :compile do | |
run("cd #{latest_release}; bundle exec compass compile --output-style nested --force -e production") | |
end | |
end | |
before 'deploy:restart', 'compass:compile' |
namespace :barista do | |
desc 'Compile CoffeeScripts.' | |
task :brew do | |
run("cd #{latest_release}; RAILS_ENV=#{rails_env} bundle exec rake barista:brew") | |
end | |
end | |
before 'deploy:restart', 'barista:brew' |
Rails flash messages with AJAX requests
HTMLElementObject.click()
, which is described here:
works on Safari/Chrome.
But in Casperjs:
>> p = Product.create(:name => 'p1', :foobar => true) | |
>> p.name | |
=> "p1" | |
>> p.foobar | |
=> true |