Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Build a Simple Ruby on Rails Application Creating an Authentication System Updating the User Model

bahman sadeghi
bahman sadeghi
4,810 Points

what is problem of my code

Thank you solve what is problem of my code? class User < ActiveRecord::Base # Include default devise modules. Others available are: # :token_authenticatable, :confirmable, # :lockable, :timeoutable and :omniauthable devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable

# Setup accessible (or protected) attributes for your model attr_accessible :email, :password, :password_confirmation, :remember_me, :first_name,:last_name,:profile_name,

# attr_accessible :title, :body end link http://teamtreehouse.com/library/build-a-simple-ruby-on-rails-application/creating-an-authentication-system/updating-the-user-model

1 Answer

Rodrigo Soares
Rodrigo Soares
2,460 Points

You should write your code better for us to visualize it clearly.

use one line before starting your code, one line after ending your code.

There's a coma after your profile_name that shouldn't be there