mirror of
https://github.com/kingomarnajjar/curly-happiness.git
synced 2026-07-25 22:27:18 +10:00
included address in seed
This commit is contained in:
parent
4ff0fcda41
commit
11b9e8752a
2 changed files with 6 additions and 2 deletions
|
|
@ -10,6 +10,7 @@
|
|||
</head>
|
||||
|
||||
<body>
|
||||
<!-- materialize carousel pulling from cloudinary -->
|
||||
<% @listings.each do |listing| %>
|
||||
<div class="carousel carousel-slider">
|
||||
<a class="carousel-item" href="#one!"><img src="<%= listing.photo_url %>"></a>
|
||||
|
|
@ -18,7 +19,9 @@
|
|||
<a class="carousel-item" href="#four!"><img src="<%= listing.photo4_url %>"></a>
|
||||
<a class="carousel-item" href="#five!"><img src="<%= listing.photo5_url %>"></a>
|
||||
</div>
|
||||
|
||||
<!-- referencing seed file -->
|
||||
<%= listing.number_of_bedrooms %>
|
||||
<%= listing.address %>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
User.create!(email: "najomar68@gmail.com",password: "123456", user_id: 1, role: "admin")
|
||||
User.create!(email: "najomar68@gmail.com",password: "123456", roles: "admin")
|
||||
User.create!(email: "kevin@gmail.com", password: "123456")
|
||||
User.create!(email: "takuya@gmail.com", password: "123456")
|
||||
|
||||
|
|
@ -11,6 +11,7 @@ Listing.create!(
|
|||
photo3: File.open(Rails.root+"app/assets/images/listing/photo3.jpg"),
|
||||
photo4: File.open(Rails.root+"app/assets/images/listing/photo4.jpg"),
|
||||
photo5: File.open(Rails.root+"app/assets/images/listing/photo5.jpg"),
|
||||
address: "7 kelly st, Ultimo",
|
||||
number_of_bedrooms: 2 ,
|
||||
rent_price_per_week: 500 ,
|
||||
available_date: 20160809,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue