def list @books = Book.all # Activeレコードのallメソッドで全データ取得! end
<% @books.each do |book| %>
<tr>
<td><%= book.title %></td>
</tr>
<% end %>
module Railbook
class Application < Rails::Application
config.author = 'Watanabe DEATH'
render :text => Railbook::Application.config.author