Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
<title>Sendo feliz com o Active Scaffold</title>
<%= javascript_include_tag :defaults %>
<%= active_scaffold_includes %>
</head>
<body>
<%= yield %>
</body>
</html>
#
# Migration para criacao de users (model User)
#
class CreateUsers < ActiveRecord::Migration
def self.up
create_table :users do |t|
t.string :first_name
t.string :last_name
t.string :email
t.timestamps
def testing
if true == false
@post = Post.available
end
end