- One commit one small feature or bug fix
- Include unit test in one commit
- Exclude non-associated files
- Don't commit un-finished or wrong code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - if f.object.file? | |
| = f.input :file, label: false, wrapper: :append do | |
| = f.input_field :file, as: :string, readonly: true | |
| span | |
| = link_to 'Download', f.object.file_url, class: 'btn' | |
| = f.link_to_remove 'Remove document', class: 'btn btn-danger' | |
| - else | |
| = f.input :file, label: false, wrapper: :append do | |
| = f.input_field :file, as: :file | |
| span |
Copied from: https://rails.lighthouseapp.com/projects/8994/tickets/2389
The problem occurs(for me) when cache_classes is set to false
class FeedEvent < ActiveRecord::Base
end
class ProjectFeedEvent < FeedEvent
end
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| >> p = Product.create(:name => 'p1', :foobar => true) | |
| >> p.name | |
| => "p1" | |
| >> p.foobar | |
| => true |
HTMLElementObject.click(), which is described here:
works on Safari/Chrome.
But in Casperjs:
Rails flash messages with AJAX requests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /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) |