Skip to content

Changing the variable names in Index and Create #96

Description

@pmckernin

Right now the variable we are using in the index action is

matching_photos = Photo.all
    
    @list_of_photos = matching_photos.order({ :created_at => :desc })

I think we should change this variable from matching_xxx to all_xxx, because currently, we are not matching anything.

Also, the variable we are using for the create action currently is the_xxxx, I think we should change it to new_xxxx. I think that this might be friendly for new students.

@raghubetina @jelaniwoods What are your thoughts?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions