config/routes.rband add the following lines:
http://localhost:3000/will go to
config/initializers/imagekitio.rb, open it and add your public and private API keys, as well as the URL Endpoint as follows: (You can find these keys in the Developer section of your ImageKit Dashboard)
app/controllers/welcome_controller.rb. Edit it to make it look like the following:
app/views/welcome/index.html.erbfile and edit file with text
Hello world. Now refresh the browser it renders the
app/models/post.rb, and add the following lines:
app/controllers/posts_controller.rb, and add the following methods:
app/views/posts/, and add the following files
get_authentication_parameters(token = nil, expire = nil)takes two optional arguments,
tokendefaults to a random string if not provided.
expiredefaults to infinite.