ruby-on-rails

Twitter bootstrap datepicker is not working in rails

I download the bootstrap-datepicker.js and include it in my application .js file. It is not working in view <div class="well"> <div id="dp5" class="input-append date" data-date-format="dd-mm-yyyy" data-date="12-02-2012"> <input class="span2" type="dp5" readonly="" value="12-02-2012" size="16"> <span...

Convert or Execute an CURL Request for Rails Application

How can I execute the following request in my Ruby on Rails controllers? curl -X POST \ -F "id={object-url OR object-id}" \ -F "scrape=true" \ -F "access_token={your access token}" \ "https://graph.facebook.com" Use the rest-client gem .You can make HTTP request from your controller using this....

“Could not find &#39;bundler&#39; (2.0.1) required by your Gemfile.lock” while deploying to Heroku

I am trying to deploy a simple Rails app to Heroku but keep getting several errors. I have searched the error remote: ! Could not detect rake tasks with little success so far. Here is the full build log: Counting objects: 209, done. Compressing objects: 100% (188/188), done. Writing objects: 100%...

avoiding layout reloading in ruby on rails project

In ruby on rails , I want to load page data dynamically. But that time i don't want to refresh or load layout page, only body should render.I am having two pages and when i switch from one page to another then the layout page data should not be reload, only another page data should load. There are...

rails-Bootstrap-markdown gem not parsing to html on save

I am using bootstrap-markdown to add a markdown editor to my page and save the content parsed to html in the database. The problem is that (although i believe it should) it does not save the html result but the raw text instead. this is my code: <div class="well col-md-10 col-md-offset-1"> <%= form...