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
| necromancer@factory:edge$ script/server | |
| /opt/local/lib/ruby/site_ruby/1.8/rubygems.rb:280:in `activate': can't activate rails (= 2.3.5, runtime) for [], already activated rails-3.0.0.beta for [] (Gem::LoadError) | |
| from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:35:in `require' | |
| from /Users/necromancer/Sites/psychedelica/edge/config/boot.rb:57:in `load_initializer' | |
| from /Users/necromancer/Sites/psychedelica/edge/config/boot.rb:40:in `run' | |
| from /Users/necromancer/Sites/psychedelica/edge/config/boot.rb:13:in `boot!' | |
| from /Users/necromancer/Sites/psychedelica/edge/config/boot.rb:112 | |
| from script/server:2:in `require' | |
| from script/server:2 |
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
| <div id="<%= post.id %>" class="blog_post ui-corner-all"> | |
| <div class="blog_post_header"> | |
| <h3><%= link_to post.title, blog_post_path(post), :class => 'title' %></h3> | |
| <div class="blog_post_meta"> | |
| posted in | |
| <%= link_to post.category.name, blog_category_path(post.category), :class => 'nobold' %> | |
| <%= unless post.date | |
| distance_of_time_in_words(post.created_at, Time.now)+' ago' | |
| else | |
| post.date |
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
| # Filters added to this controller apply to all controllers in the application. | |
| # Likewise, all the methods added will be available for all controllers. | |
| class ApplicationController | |
| #helper :all | |
| #filter_parameter_logging :password | |
| #protect_from_forgery | |
| #helper_method :current_user_session, :current_user | |
| private | |
| def current_user_session | |
| return @current_user_session if defined?(@current_user_session) |
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
| # This will be the GitHub interface for tracking my programming projects and recent | |
| # GitHub activity. | |
| # | |
| # GET /code | |
| # GET /code.atom | |
| def code | |
| @title = 'dev dev revolution' | |
| @user = GitHub::User.find('tubbo') # get my profile information | |
| # if we're authenticated properly, get repos and activity |
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
| <div id="login" title="enter your password" class="ui-widget"> | |
| <form action="/sessions" method="post"><div style="margin:0;padding:0;display:inline"><input name="authenticity_token" type="hidden" value="UCg09rlbKz/qAAbI9EdaZUfp2AI2lrDjojRLVo5IWRY=" /></div> <input id="password" name="password" type="password" /> <input name="commit" type="submit" value="log in" /> | |
| </form> | |
| </div> | |
| <script type="text/javascript"> | |
| //<![CDATA[ | |
| $("#login").dialog({ autoOpen: false, height: 550 }); | |
| //]]> | |
| </script> |
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
| private | |
| def mobile_device? | |
| if session[:mobile_param] | |
| session[:mobile_param] == '1' | |
| else | |
| request.user_agent =~ /Mobile|webOS/ | |
| end | |
| end | |
| helper_method :mobile_device? | |
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
| ActionView::TemplateError (PGError: ERROR: relation "sessions" does not exist | |
| : SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull | |
| FROM pg_attribute a LEFT JOIN pg_attrdef d | |
| ON a.attrelid = d.adrelid AND a.attnum = d.adnum | |
| WHERE a.attrelid = '"sessions"'::regclass | |
| AND a.attnum > 0 AND NOT a.attisdropped | |
| ORDER BY a.attnum | |
| ) on line #25 of app/views/layouts/application.html.erb: | |
| 22: </span> | |
| 23: </div> |
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
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xmlns:fb="http://www.facebook.com/2008/fbml"> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html;charset=UTF-8" /> | |
| <title>illup | <%= yield(:title) || 'the hip-hop community' %></title> | |
| <%= stylesheet_link_tag 'application' %> | |
| <%= javascript_include_tag :defaults %> | |
| <%= javascript_include_tag 'http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php' %> |
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
| # Filters added to this controller apply to all controllers in the application. | |
| # Likewise, all the methods added will be available for all controllers. | |
| class ApplicationController < ActionController::Base | |
| helper :all | |
| helper_method :current_user_session, :current_user | |
| filter_parameter_logging :password, :password_confirmation | |
| private | |
| def current_user_session |
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
| Processing PagesController#home (for 69.142.78.178 at 2010-07-29 18:08:51) [GET] | |
| Parameters: {"action"=>"home", "controller"=>"pages"} | |
| Rendering template within layouts/application | |
| Rendering pages/home | |
| ActionView::TemplateError (PGError: ERROR: relation "sessions" does not exist | |
| : SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull | |
| FROM pg_attribute a LEFT JOIN pg_attrdef d | |
| ON a.attrelid = d.adrelid AND a.attnum = d.adnum | |
| WHERE a.attrelid = '"sessions"'::regclass |