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
$ gem list | |
*** LOCAL GEMS *** | |
abstract (1.0.0) | |
actionmailer (3.0.0.beta) | |
actionpack (3.0.0.beta) | |
activemodel (3.0.0.beta) | |
activerecord (3.0.0.beta) | |
activeresource (3.0.0.beta) |
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://gemcutter.org' | |
gem "rails", "3.0.0.beta" | |
gem "sqlite3-ruby", :require => "sqlite3" | |
gem "test-unit" | |
gem "rspec-rails", ">= 2.0.0.beta.1" | |
gem 'capybara' | |
gem 'database_cleaner' |
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
actually it's views/hello.md, but gist would trigger Markdown highlighting | |
# Fibonacci numbers in Ruby | |
:::ruby | |
def fib(n) | |
if n < 2 | |
1 | |
else | |
fib(n-2) + fib(n-1) |
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
- use respond_to (or something else?) in send_data to externalize the .js processing, in the same fashion one would use a .rjs file. | |
- be able to use :method => "get" without triggering the show action. |
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
# rails/init.rb | |
require 'marshalize' | |
ActiveRecord::Base.send(:include, Marshalization::Base) | |
ActiveRecord::Base.send(:include, Marshalization::AttributeMethods) | |
ActiveRecord::Base.send(:include, Marshalization::Dirty) |
NewerOlder