Permalink
Browse files

Minor changes

  • Loading branch information...
1 parent 3d65f7b commit 530cb22c70451a8aa18dd02f69b4f5ec745f4145 @marcus committed Dec 14, 2009
@@ -41,7 +41,6 @@ def create
respond_to do |format|
if @booksearch.save
- flash[:notice] = 'Booksearch was successfully created.'
format.html { redirect_to(@booksearch) }
format.xml { render :xml => @booksearch, :status => :created, :location => @booksearch }
else
@@ -1,5 +1,6 @@
class HomeController < ApplicationController
def index
@booksets = Bookset.find(:all, :limit => 15, :order => 'rand()')
+ #Bookset.find(:all, :select => 'booksets.*, count(listings.id) as listing_count',:joins => 'left outer join listings on listings.bookset_id=booksets.id', :group => 'booksets.id')
end
-end
+end
@@ -0,0 +1,9 @@
+<h1>Welcome to Instabrary</h1>
+<p>
+Instabrary lets you create playlists of books--we call them "booksets." Use it to make reading recommendations to friends, post on your blog, save for later or just for fun.</p>
+
+<h2>
+ A Few Random Booksets
+</h2>
+
+<%= render :partial => '/shared/bookset_list' %>
@@ -1,6 +0,0 @@
-%h1 Welcome to Instabrary
-%p Instabrary lets you create playlists of books--we call them "booksets." Use it to make reading recommendations to friends, post on your blog, save for later or just for fun.
-
-%h2 A Few Random Booksets
-
-= render :partial => '/shared/bookset_list'
View
@@ -9,7 +9,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20091212185457) do
+ActiveRecord::Schema.define(:version => 20091213005740) do
create_table "book_statuses", :force => true do |t|
t.integer "user_id"

0 comments on commit 530cb22

Please sign in to comment.