how to get the ip of visitors with ruby? - ruby

I'm using ruby with Sinatra.
I want get the public ip of visitors and save it in a database, but a don't know how get the ip... Sorry, but I have not found a way to do that.
Guys can help me? Thank you!

According to the Sinatra documentation, you can use
request.ip

Related

Joomla Canonical Url Wrong

My sites show as canonical ulr this:
which is wrong.
I don't know how to fix it.
Can someone help me?
Thanks christoforos
Sorry it was my mistake.
In the Sef Component I had fill the canonical url with the wrong value.
Hope someone else find it helpful.

How to Use ScrapingHub.com API to post data on Heroku database?

How to Use ScrapingHub.com API to post data on Heroku database? I am thinking that is it possible to connect my API from scrapinghub to Heroku databe?
Any idea please? Please help me thank you!
Thank you for helping me I already solve my problem by using requirement dependency on scrapinghub :)

Hello I am the beginner to laravel , I don't know how to start and run my first program kindly anyone can help me

Hello I am the beginner to Laravel , I don't know how to start and run my first program kindly anyone can help me
You can get a lot of useful information like video courses, forum here: https://laracasts.com/
Or you can watch the laravel series on youtube from DevMarketer
And you can always check the official documentation of Laravel here.
Read full official documentation of laravel framework
https://laravel.com/docs/5.6/readme
Follow this, has all the info for beginners
https://www.tutorialspoint.com/laravel/index.htm
Follow following Urls that will help you to study laravel step by stephttps://laravel-news.com/your-first-laravel-applicationhttps://laracasts.com/series/laravel-5-fundamentalshttps://laravel.com/docs/5.6

How can i change the wso2 main template

How can i change the wso2 main template (Management console) of the base link 'https://localhost:9443/carbon/'. I would like to change the layout and maybe logo's or something like that.
If anyone could help me i would be quite grateful.
Thank you everyone.
Following doc is from Identity Server. But it should work for all carbon products.
https://docs.wso2.com/display/IS530/Customizing+the+Management+Console

Link tag in Sinatra

Ok, I am brand new to ruby and Sinatra and I am embarrassed to say I cannot for the life of me find out how to use a link tag in Sinatra. I just need to link, from my index.erb, to a static page, about.html. About is not working. How can I do this? Thanks a lot!
I think you're looking for something like:
About
You're going to want to locate this about.html file in the /public folder of your application.
If you want to overwrite using that location for another one, you can do so with :public_folder and is fairly well described at: http://www.sinatrarb.com/configuration.html
I hope that helps.

Resources