Skip to content

Instantly share code, notes, and snippets.

View mmurray's full-sized avatar

Michael Murray mmurray

View GitHub Profile
-rwxr-xr-x 1 michaelmurray staff 2386 Aug 20 16:30 /Users/michaelmurray/.rvm/scripts/rvm
$ sudo /etc/init.d/apache2 start
* Starting web server apache2
[Thu Aug 26 03:46:44 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
...fail!
$ sudo /etc/init.d/apache2 start
* Starting web server apache2
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
...fail!
No route matches {:action=>"destroy", :controller=>"user_sessions"}
Ftc::Application.routes.draw do
resources :users
resources :user_sessions
end
$ beet -g ftc -r="rails3/js/jquery, rails3/db/mysql, rails3/auth/devise, rails3/git"
Generating rails 3 project ftc...
create
create README
create Rakefile
create config.ru
create .gitignore
create Gemfile
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
<%= error_messages_for :resource, :header_message => nil, :message => 'Oops, an error occurred:' %>
<table>
<tr>
<td><%= f.label :email %></td>
<td><%= f.text_field :email %></td>
</tr>
<tr>
<td><%= f.label :password %></td>
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
<%= error_messages_for :resource, :header_message => nil, :message => 'Oops, an error occurred:' %>
<table>
<tr>
<td><%= f.label :email %></td>
<td><%= f.text_field :email %></td>
</tr>
<tr>
<td><%= f.label :password %></td>
<div class="round-box black">
<div class="loginForm">
<h2>Login</h2>
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
<table>
<tr>
<td><%= f.label :email %></td>
<td><%= f.text_field :email %></td>
</tr>
<div class="round-box black">
<div class="loginForm">
<h2>Login</h2>
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
<table>
<tr>
<td><%= f.label :email %></td>
<td><%= f.text_field :email %></td>
</tr>