yudagn / AetherBnB

AetherBnb is a clone of the website Airbnb that implements many of the features available on Airbnb.
0 stars 0 forks source link

AetherBnb

Live Site

Introduction

AetherBnb is a clone of the website Airbnb that implements many of the features available on Airbnb.

Technologies Used

Frontend

Backend

Additional Technologies

Features

Challenges

def index 
    if !params[:searchParams]     
        @listings = Listing.with_attached_photos.all    
    elsif params[:searchParams][:city]
       @listings = Listing.with_attached_photos.where(city: params[:searchParams][:city])
    end
    render :index
end 

Photos courtesy of Unsplash