Skip to content

Instantly share code, notes, and snippets.

@tylerwillingham
Created February 17, 2012 05:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tylerwillingham/78037c4febfaa270a67e to your computer and use it in GitHub Desktop.
Save tylerwillingham/78037c4febfaa270a67e to your computer and use it in GitHub Desktop.
<h1>Add a new thought</h1>
<%= form_for @thoughts do |f| %>
<%= f.label :thought %>
<%= f.text_field :thought %>
<% end %>
class ThoughtsController < ApplicationController
def index
@thoughts = Thought.all
end
def create
@thoughts = Thought.new
end
def update
end
def delete
end
def view
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment