# How to configure elasticsearch 2.4.0 in rails (gem file and how to cofigure)

**URL:** <https://discuss.elastic.co/t/how-to-configure-elasticsearch-2-4-0-in-rails-gem-file-and-how-to-cofigure/106648>\
**Category:** Elasticsearch\
**Created:** [November 7, 2017, 8:56am UTC](https://discuss.elastic.co/t/how-to-configure-elasticsearch-2-4-0-in-rails-gem-file-and-how-to-cofigure/106648 "2017-11-07T08:56:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anandkanabar](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@anandkanabar](https://discuss.elastic.co/u/anandkanabar)\
**Post date:** [November 7, 2017, 8:56am UTC](https://discuss.elastic.co/t/how-to-configure-elasticsearch-2-4-0-in-rails-gem-file-and-how-to-cofigure/106648/1 "2017-11-07T08:56:04Z")

</div>

I am new in ruby on rails need to configure elasticsearch past (previos) vesion of 2.4.0 please help me what to write in gem file and how to configure with rail 4.2.4.

I have successfully install elasticsearch 2.4.0 as i have receive message in my browser when I run command [http://localhost:9200/](http://localhost:9200/)

output  
{  
"name" : "Gargantus",  
"cluster\_name" : "elasticsearch",  
"version" : {  
"number" : "2.4.0",  
"build\_hash" : "ce9f0c7394dee074091dd1bc4e9469251181fc55",  
"build\_timestamp" : "2016-08-29T09:14:17Z",  
"build\_snapshot" : false,  
"lucene\_version" : "5.5.2"  
},  
"tagline" : "You Know, for Search"  
}

Thank you in adavance !

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 5, 2017, 8:56am UTC](https://discuss.elastic.co/t/how-to-configure-elasticsearch-2-4-0-in-rails-gem-file-and-how-to-cofigure/106648/2 "2017-12-05T08:56:06Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
