-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
12 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' %> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters