Skip to content

Changing the variable names in Index and Create #96

@pmckernin

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?

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