RailsCasts Pro episodes are now free!

Learn more or hide this

AvalancheTheory's Profile

GitHub User: AvalancheTheory

Comments by

Avatar
app/controllers/users_controller.rb
def index
  @users = User.all
end

then you'll probably need to create the file:

app/views/users/index.html.erb
<% @users.each do |u| %>
<%= u.email %>
<% end %>

No promises that that works, but hopefully it supplies some instant gratification.

You'd be better off looking through some tutorials though if you don't understand the errors you're getting.

http://ruby.railstutorial.org/ruby-on-rails-tutorial-book
^ is overkill for newbies, but I haven't found a more gentle learning source