Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
Checking mergeability… Don't worry, you can still create the pull request.
  • 6 commits
  • 7 files changed
  • 0 commit comments
  • 1 contributor
View
BIN  demo/server/app/assets/images/rails.png
Deleted file not rendered
View
5 demo/server/app/assets/stylesheets/application.css
@@ -9,7 +9,6 @@
body {
font: 12px "Lucida Grande";
-// border:0; margin:0; padding:0;
}
footer
@@ -55,7 +54,6 @@ p.coming_soon
.divider
{
margin-bottom: 30px;
-// margin-top: 30px;
margin-left: 15%;
margin-right: 15%;
}
@@ -79,7 +77,6 @@ p.coming_soon
-moz-border-radius: 5px;
border-radius: 5px;
background: #FBFBFB;
-
margin-left: 20%;
margin-right: 20%;
}
@@ -126,12 +123,12 @@ div::-webkit-scrollbar-thumb {
font-size:13px;
float:right;
}
+
.comment_body
{
overflow: auto;
overflow-x: hidden;
max-height:162px;
-
font-size:15px;
margin: 10px;
}
View
4 demo/server/app/models/post.rb
@@ -1,8 +1,8 @@
class Post < ActiveRecord::Base
has_many :responses, :dependent => :destroy
- validates_presence_of :content
- validates_presence_of :author
+ validates :content, :presence => true
+ validates :author, :presence => true
accepts_nested_attributes_for :responses
View
4 demo/server/app/models/response.rb
@@ -1,6 +1,6 @@
class Response < ActiveRecord::Base
belongs_to :post
- validates_presence_of :content
- validates_presence_of :author
+ validates :content, :presence => true
+ validates :author, :presence => true
end
View
1  demo/server/db/migrate/20120221022827_create_posts.rb
@@ -1,7 +1,6 @@
class CreatePosts < ActiveRecord::Migration
def change
create_table :posts do |t|
-
t.timestamps
end
end
View
1  demo/server/db/migrate/20120221031424_create_responses.rb
@@ -1,7 +1,6 @@
class CreateResponses < ActiveRecord::Migration
def change
create_table :responses do |t|
-
t.timestamps
end
end
View
3  demo/server/db/migrate/20120221032404_add_fields_to_response.rb
@@ -3,5 +3,6 @@ def change
add_column :responses, :content, :text
add_column :responses, :author, :string
add_column :responses, :post_id, :integer
+ add_index :responses, :post_id, :unique => true
end
-end
+end

No commit comments for this range

Something went wrong with that request. Please try again.