This file contains 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
module LinksModule | |
def self.included(klass) | |
klass.class_eval do | |
before_filter :get_links | |
def get_links | |
@links = Link.order('position ASC').limit(5) | |
end | |
end | |
end | |
end |
This file contains 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/bin/env ruby -wKU | |
# define our list of candidate snippets | |
s = ["%snippet:typo1%","%snippet:typo2%","%snippet:typo3%"] | |
# select one at random and write it to STDOUT | |
STDOUT.write s[rand(s.size)] |
This file contains 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
## Features | |
Feature: Authentication | |
In order to use GoGo app | |
As a visitor | |
I want to be able to log in | |
Scenario: Login | |
Given I am not logged in | |
When I follow "Sign in with Facebook" |
This file contains 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
error: Your local changes to the following files would be overwritten by checkout: | |
app/models/spot.rb | |
config/routes.rb | |
db/schema.rb | |
Please, commit your changes or stash them before you can switch branches. | |
Aborting |
This file contains 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
git flow feature finish "badge_types" | |
error: Cannot delete the branch 'feature/badge_types' which you are currently on. | |
Summary of actions: | |
- The feature branch 'feature/badge_types' was merged into 'develop' | |
- Feature branch 'feature/badge_types' has been removed | |
- You are now on branch 'develop' | |
cl146:GoGoApp johanbruning$ git branch | |
develop |
This file contains 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
class Spot < ActiveRecord::Base | |
belongs_to :badge_type | |
has_and_belongs_to_many :badge_types | |
end | |
class BadgeType < ActiveRecord::Base | |
#has_many :spots | |
has_and_belongs_to_many :spots | |
end |
This file contains 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
Started GET "/places?utf8=%E2%9C%93&city=Enschede&search=Wirelab&latitude=52.2203375&longitude=6.8959638" for 127.0.0.1 at 2011-05-16 13:10:36 +0200 | |
Processing by PlacesController#index as JS | |
Parameters: {"utf8"=>"✓", "city"=>"Enschede", "search"=>"Wirelab", "latitude"=>"52.2203375", "longitude"=>"6.8959638"} | |
User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = 4 LIMIT 1 | |
Completed in 887ms | |
Error during failsafe response: Anonymous modules have no name to be referenced by | |
/Users/johanbruning/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:630:in `to_constant_name' | |
/Users/johanbruning/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:126:in `block in watch_namespaces' | |
/Users/johanbruning/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:125:in `map' | |
/Users/johanbruning/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:125:in `watch_nam |
This file contains 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
cucumber features/ | |
/Users/johan/.rvm/gems/ruby-1.9.2-p180/gems/json-1.5.1/ext/json/ext/json/ext/parser.bundle: [BUG] Segmentation fault | |
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0] | |
Abort trap | |
johan$ ruby -v | |
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.6.0] |
This file contains 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
NameError in Admin/configurations#index | |
Showing /Users/johanbruning/.rvm/gems/ruby-1.9.2-p180/gems/spree_social-1.2/app/views/admin/shared/_configurations_menu.html.erb where line #2 raised: | |
undefined local variable or method `admin_authentication_methods_path' for #<#<Class:0x00000105524eb8>:0x00000105521e48> | |
Extracted source (around line #2): | |
1: <tr> | |
2: <td><%= link_to t("social_servers"), admin_authentication_methods_path %></td> | |
3: <td><%= t("social_servers_description") %></td> |
This file contains 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
source 'http://rubygems.org' | |
gem 'rails', '3.0.7' | |
# Bundle edge Rails instead: | |
# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
gem 'sqlite3' | |
# Use unicorn as the web server |
OlderNewer