Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus committed Dec 14, 2009
1 parent 3d65f7b commit 530cb22
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
1 change: 0 additions & 1 deletion app/controllers/booksearches_controller.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ def create


respond_to do |format| respond_to do |format|
if @booksearch.save if @booksearch.save
flash[:notice] = 'Booksearch was successfully created.'
format.html { redirect_to(@booksearch) } format.html { redirect_to(@booksearch) }
format.xml { render :xml => @booksearch, :status => :created, :location => @booksearch } format.xml { render :xml => @booksearch, :status => :created, :location => @booksearch }
else else
Expand Down
3 changes: 2 additions & 1 deletion app/controllers/home_controller.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,5 +1,6 @@
class HomeController < ApplicationController class HomeController < ApplicationController
def index def index
@booksets = Bookset.find(:all, :limit => 15, :order => 'rand()') @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 end
9 changes: 9 additions & 0 deletions app/views/home/index.html.erb
Original file line number Original file line Diff line number Diff line change
@@ -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' %>
6 changes: 0 additions & 6 deletions app/views/home/index.html.haml

This file was deleted.

2 changes: 1 addition & 1 deletion db/schema.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# #
# It's strongly recommended to check this file into your version control system. # 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| create_table "book_statuses", :force => true do |t|
t.integer "user_id" t.integer "user_id"
Expand Down

0 comments on commit 530cb22

Please sign in to comment.