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
$view = new view; | |
$view->name = 'Quickstart_Pics'; | |
$view->description = 'quickstart slideshow'; | |
$view->tag = 'slideshow, quickstart'; | |
$view->view_php = ''; | |
$view->base_table = 'node'; | |
$view->is_cacheable = FALSE; | |
$view->api_version = 2; | |
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ | |
$handler = $view->new_display('default', 'Defaults', 'default'); |
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
post :index, :map => "/newsletter" do | |
email=params[:email] | |
@signup=Newsletter.new(:email=>email) | |
render "newsletter/index",:layout => false | |
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
require 'digest/sha1' | |
class User < ActiveRecord::Base | |
has_one :company | |
attr_accessor :password | |
# Validations | |
validates_presence_of :email | |
validates_presence_of :password, :if => :password_required |
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
if user = User.authenticate(params[:user]["email"], params[:user]["password"]) | |
#set_current_account(user) | |
session[:email]="mycookie@email.com" | |
redirect "/user" | |
else | |
flash[:error]= 'There was a problem signing you in. Please try again.' | |
render "sessions/login", :layout => !request.xhr? | |
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
Freenaut:bootstrap2 newuser$ /usr/local/bin/mongod -config /usr/local/Cellar/mongodb/1.6.3-x86_64/mongod.conf | |
Mon Nov 1 18:37:16 MongoDB starting : pid=5714 port=27017 dbpath=/usr/local/var/mongodb 64-bit | |
Mon Nov 1 18:37:16 db version v1.6.3, pdfile version 4.5 | |
Mon Nov 1 18:37:16 git version: 278bd2ac2f2efbee556f32c13c1b6803224d1c01 | |
Mon Nov 1 18:37:16 sys info: Darwin erh2.10gen.cc 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386 BOOST_LIB_VERSION=1_40 | |
************** | |
old lock file: /usr/local/var/mongodb/mongod.lock. probably means unclean shutdown | |
recommend removing file and running --repair | |
see: http://dochub.mongodb.org/core/repair for more information | |
************* |
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
/Library/Ruby/Gems/1.8/gems/json-1.4.6/lib/json/common.rb:65: warning: already initialized constant State | |
/Library/Ruby/Gems/1.8/gems/json-1.4.6/lib/json/common.rb:66: warning: already initialized constant SAFE_STATE_PROTOTYPE | |
/Library/Ruby/Gems/1.8/gems/json-1.4.6/lib/json/common.rb:67: warning: already initialized constant FAST_STATE_PROTOTYPE | |
/Library/Ruby/Gems/1.8/gems/json-1.4.6/lib/json/common.rb:74: warning: already initialized constant PRETTY_STATE_PROTOTYPE | |
/Library/Ruby/Gems/1.8/gems/json-1.4.6/lib/json/pure.rb:76: warning: already initialized constant JSON_LOADED |
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
** Execute heroku:setup:apps | |
heroku create bootsy --remote bootsy | |
! Name is already taken | |
** Invoke heroku:setup:stacks (first_time) | |
** Execute heroku:setup:stacks | |
rake aborted! | |
404 Resource Not Found | |
/Users/newuser/.rvm/gems/ruby-1.8.7-p302/gems/rest-client-1.6.1/lib/restclient/abstract_response.rb:48:in `return!' | |
/Users/newuser/.rvm/gems/ruby-1.8.7-p302/gems/rest-client-1.6.1/lib/restclient/request.rb:220:in `process_result' | |
/Users/newuser/.rvm/gems/ruby-1.8.7-p302/gems/rest-client-1.6.1/lib/restclient/request.rb:169:in `transmit' |
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
embed_assets: off | |
javascript_compressor: closure | |
javascripts: | |
default: | |
- public/javascripts/vendor/jquery.min.js | |
- public/javascripts/lib/base/jquery.js | |
- public/javascripts/lib/base/rails.js | |
workspace: | |
- public/javascripts/vendor/jquery.min.js |
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 "/messages/new" for 127.0.0.1 at Thu Nov 11 12:09:41 -0500 2010 | |
Processing by MessagesController#new as HTML | |
ERROR: compiling _app_views_inherited_resources__form_html_haml___2082234007_2188283540_953310 RAISED compile error | |
/Users/newuser/Dropbox/Sites/rails/boot-mongo/app/views/inherited_resources/_form.html.haml:22: syntax error, unexpected kENSURE, expecting kEND | |
...Util.html_safe(_erbout);ensure;@haml_buffer = @haml_buffer.u... | |
^ | |
/Users/newuser/Dropbox/Sites/rails/boot-mongo/app/views/inherited_resources/_form.html.haml:23: syntax error, unexpected kENSURE, expecting kEND | |
/Users/newuser/Dropbox/Sites/rails/boot-mongo/app/views/inherited_resources/_form.html.haml:25: syntax error, unexpected $end, expecting kEND | |
Function body: def _app_views_inherited_resources__form_html_haml___2082234007_2188283540_953310(local_assigns) | |
_old_virtual_path, @_virtual_path = @_virtual_path, "inherited_resources/_form";_old_output_buffer = @output_buffer;form |
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
ruby-1.8.7-p302 > y=YUI::CssCompressor.new({}) | |
=> #<YUI::CssCompressor:0x1019d8378 @options={:charset=>"utf-8", :line_break=>nil}, @command=["java", "-jar", "/Users/newuser/.rvm/gems/ruby-1.8.7-p302/gems/yui-compressor-0.9.1/lib/yui/../../vendor/yuicompressor-2.4.2.jar", "--type", "css", "--charset", "utf-8"]> | |
ruby-1.8.7-p302 > y.compress("a{}\n pre{}") | |
=> "" | |