This README would normally document whatever steps are necessary to get the application up and running.
Things you may want to cover:
-
Ruby version
-
System dependencies
-
Configuration
-
Database creation
-
Database initialization
-
How to run the test suite
-
Services (job queues, cache servers, search engines, etc.)
-
Deployment instructions
-
...
class DestinationsController < ApplicationController
def index
@destinations = HTTParty.get('http://localhost:3000/destinations')
:index
end
def show @destination = HTTParty.get('http://localhost:3000/destinations/'+params[:id]) # binding.pry :show end
private # Use callbacks to share common setup or constraints between actions.
# Never trust parameters from the scary internet, only allow the white list through.
def destination_params
params.fetch(:destination, {})
end
end