Skip to content

Commit

Permalink
fixing up before/after code in episode 260
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanb committed Apr 5, 2011
1 parent 922772d commit de20fd9
Show file tree
Hide file tree
Showing 115 changed files with 4 additions and 9,279 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions episode-260/chatter-before/Gemfile
Expand Up @@ -2,6 +2,5 @@ source 'http://rubygems.org'

gem 'rails', '3.0.5'
gem 'sqlite3'
gem 'jquery-rails'
gem 'nifty-generators'
gem "mocha", :group => :test
gem 'jquery-rails'
2 changes: 0 additions & 2 deletions episode-260/chatter-before/Gemfile.lock
Expand Up @@ -42,7 +42,6 @@ GEM
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.16)
mocha (0.9.12)
nifty-generators (0.4.6)
polyglot (0.3.1)
rack (1.2.2)
Expand Down Expand Up @@ -75,7 +74,6 @@ PLATFORMS

DEPENDENCIES
jquery-rails
mocha
nifty-generators
rails (= 3.0.5)
sqlite3
File renamed without changes.
Expand Up @@ -4,11 +4,6 @@ def index
end

def create
@message = Message.new(params[:message])
if @message.save
redirect_to messages_url
else
render :action => 'new'
end
@message = Message.create!(params[:message])
end
end
9 changes: 2 additions & 7 deletions episode-260/chatter-before/app/views/messages/index.html.erb
@@ -1,15 +1,10 @@
<% title "Chat" %>

<ul id="chat">
<% for message in @messages %>
<li>
<span class="created_at"><%= message.created_at.strftime("%H:%M") %></span>
<%= message.content %>
</li>
<% end %>
<%= render @messages %>
</ul>

<%= form_for Message.new do |f| %>
<%= form_for Message.new, :remote => true do |f| %>
<%= f.text_field :content %>
<%= f.submit "Send" %>
<% end %>

This file was deleted.

This file was deleted.

42 changes: 0 additions & 42 deletions episode-260/chatter-before/chatter/config/application.rb

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions episode-260/chatter/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions episode-260/chatter/Gemfile

This file was deleted.

79 changes: 0 additions & 79 deletions episode-260/chatter/Gemfile.lock

This file was deleted.

7 changes: 0 additions & 7 deletions episode-260/chatter/Rakefile

This file was deleted.

3 changes: 0 additions & 3 deletions episode-260/chatter/app/controllers/application_controller.rb

This file was deleted.

9 changes: 0 additions & 9 deletions episode-260/chatter/app/controllers/messages_controller.rb

This file was deleted.

23 changes: 0 additions & 23 deletions episode-260/chatter/app/helpers/error_messages_helper.rb

This file was deleted.

22 changes: 0 additions & 22 deletions episode-260/chatter/app/helpers/layout_helper.rb

This file was deleted.

2 changes: 0 additions & 2 deletions episode-260/chatter/app/helpers/messages_helper.rb

This file was deleted.

3 changes: 0 additions & 3 deletions episode-260/chatter/app/models/message.rb

This file was deleted.

10 changes: 0 additions & 10 deletions episode-260/chatter/app/views/messages/index.html.erb

This file was deleted.

4 changes: 0 additions & 4 deletions episode-260/chatter/config.ru

This file was deleted.

6 changes: 0 additions & 6 deletions episode-260/chatter/config/boot.rb

This file was deleted.

22 changes: 0 additions & 22 deletions episode-260/chatter/config/database.yml

This file was deleted.

5 changes: 0 additions & 5 deletions episode-260/chatter/config/environment.rb

This file was deleted.

26 changes: 0 additions & 26 deletions episode-260/chatter/config/environments/development.rb

This file was deleted.

0 comments on commit de20fd9

Please sign in to comment.