class User

Schema Information

Table name: users

id              :integer          not null, primary key
name            :string(255)
email           :string(255)
created_at      :datetime         not null
updated_at      :datetime         not null
password_digest :string(255)
remember_token  :string(255)
admin           :boolean          default(FALSE)

Constants

VALID_EMAIL_REGEX

Public Instance Methods

feed() click to toggle source
# File app/models/user.rb, line 34
def feed
  # This is preliminary.
  Micropost.where("user_id = ?", id)
end
feedproject() click to toggle source
# File app/models/user.rb, line 39
def feedproject
  # This is preliminary.
  #Myproject.where("user_id = ?", id)
   myprojects
end