property_web_builder
https://github.com/etewiah/property_web_builder
Ruby
Create a fully featured real estate website on Rails in minutes! ⛺
Pwb::Prop#url_friendly_title
def ordered_photo_url(number)
# allows me to pick an individual image according to an order
unless prop_photos.length >= number
return "https://placeholdit.imgix.net/~text?txtsize=38&txt=&w=550&h=400&txttrack=0"
end
prop_photos[number - 1].image.url
endEdit
git clone [email protected]:etewiah/property_web_builder.git
cd property_web_builder
open app/models/pwb/prop.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Pwb--Prop-url_friendly_title-for-pr
# Commit to gitgit add app/models/pwb/prop.rbgit commit -m "better docs for Pwb::Prop#url_friendly_title"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Pwb--Prop-url_friendly_title-for-pr
hub pull-request
# Celebrate!