Skip to main content

Personal records

Rails • Asked by Devkit

Hello! How to create an entry for each user? But only those creators can see these records


You need to scope it to currently logged in user. if you use Devise you can use something like current_user.personal_record. This can be done in the controller's "set" before_action, or in the preferred action, eg index, show, etc


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 27,623+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.