This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// GET /room_rates/[:hotel_id]?from_date=[:datetime]&to_date=[:datetime]&last_updated_at=[:datetime] | |
// Response: | |
{ | |
...hotel metadata | |
rooms: [ | |
{ | |
...room metadata | |
policies: [ | |
...policy metadata (cancellation/breakfast etc) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CommentsController < ApplicationController | |
def users_comments | |
posts = Post.all | |
comments = posts.map(&:comments).flatten | |
@user_comments = comments.select do |comment| | |
comment.author.username == params[:username] | |
end | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.range-slider-container { | |
position:relative; | |
width:100%; | |
height:100px; | |
} | |
.range-slider-left { | |
position:absolute; | |
top:0; | |
width:100%; |