title: ruby mechanize website scraping always returns javascript data only
body: <p>I am working  with mechanize gem to scrape website content which has login authentication . I could able to login successfully using mechanize gem but after submit the form using mechanize the server response is only of javascript content , all I could see in the response page is javascript content I do not find any of html data , I am not sure what wrong I did .here is my code please look at it </p>
  
  <pre><code>agent = Mechanize.new { |a|
   a.follow_meta_refresh = true
  }
  
  agent.get("https://www.somewebsite.com/signin.html")
  
  form = agent.page.forms.first
  form.username = 'username@mail.com'
  form.password = 'password'
  page = form.submit
  
  puts page.body ## returns javascript content only
  </code></pre>
  
  <p>but the original site has dashboard content which I want get it .</p>
  
  <p>Can anyone help me , thanks in advance .</p>