Skip to content

Commit

Permalink
add .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
IceskYsl committed Jun 24, 2012
1 parent 2f769be commit 4919bea
Show file tree
Hide file tree
Showing 12 changed files with 22,807 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/models/post.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Post
attr_accessible :title, :body, :tag_list,:category_id,:created_at
attr_accessor :tag_list

validates_presence_of :title, :body, :tag_list,:category_id
validates_presence_of :title,:category_id

# scopes
scope :normal, where(:state => STATE[:normal])
Expand Down
7 changes: 6 additions & 1 deletion lib/im_wp_xml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ def self.do_im
puts "#{i}: #{title} : #{date_string} : #{category_string} : #{tags}"
c = Category.where(:name => category_string).first
c = Category.create(:name => category_string) unless c
Post.create(:category_id => c.id, :title => title, :body => content ,:tag_list => tags,:created_at =>date )

begin
Post.create(:category_id => c.id, :title => title, :body => content ,:tag_list => tags || "notag",:created_at =>date, :state => 1 )
rescue => e
Rails.logger.error(" #{e}")
end
end
end

Expand Down
22,799 changes: 22,799 additions & 0 deletions log/development.log

Large diffs are not rendered by default.

Binary file modified tmp/cache/8ED/600/site_config%3Amenu_html
Binary file not shown.
Binary file modified tmp/cache/95A/F70/site_config%3Asite_title
Binary file not shown.
Binary file modified tmp/cache/9BC/9D0/site_config%3Asite_slogan
Binary file not shown.
Binary file modified tmp/cache/9C7/990/site_config%3Afooter_html
Binary file not shown.
Binary file modified tmp/cache/9CB/950/site_config%3Asite_author
Binary file not shown.
Binary file modified tmp/cache/A84/740/site_config%3Aabout_me_html
Binary file not shown.
Binary file modified tmp/cache/D8A/8E0/site_config%3Asite_author_username
Binary file not shown.
Binary file modified tmp/cache/D9D/980/site_config%3Asite_author_password
Binary file not shown.
2 changes: 1 addition & 1 deletion tmp/pids/server.pid
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14684
14979

0 comments on commit 4919bea

Please sign in to comment.