Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8838255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:56:40+00:00 2026-06-14T09:56:40+00:00

-#encoding: utf-8 :css .hidden{display:none;} %script{:src=>/javascripts/jquery.js} %form{:action=>https://get724.ccvb.com.tr/Get724/get724uye.aspx,:method=>post} %input.hidden{:type=>text,:name=>uyeno,:value=>} %input.hidden{:type=>text,:name=>kkno,:value=>} %input.hidden{:type=>text,:name=>gectar,:value=>} %input.hidden{:type=>text,:name=>tutar,:value=>} %input.hidden{:type=>text,:name=>dcins,:value=>} %input.hidden{:type=>text,:name=>sipbil,:value=>} %input.hidden{:type=>text,:name=>sesbil,:value=>} %input.hidden{:type=>text,:name=>burl,:value=>}

  • 0
-#encoding: utf-8
:css
 .hidden{display:none;}
%script{:src=>"/javascripts/jquery.js"}
%form{:action=>"https://get724.ccvb.com.tr/Get724/get724uye.aspx",:method=>"post"}
 %input.hidden{:type=>"text",:name=>"uyeno",:value=>""}
 %input.hidden{:type=>"text",:name=>"kkno",:value=>""}
 %input.hidden{:type=>"text",:name=>"gectar",:value=>""}
 %input.hidden{:type=>"text",:name=>"tutar",:value=>""}
 %input.hidden{:type=>"text",:name=>"dcins",:value=>""}
 %input.hidden{:type=>"text",:name=>"sipbil",:value=>""}
 %input.hidden{:type=>"text",:name=>"sesbil",:value=>""}
 %input.hidden{:type=>"text",:name=>"burl",:value=>""}
 %input.hidden{:type=>"text",:name=>"hurl",:value=>""}
 - t = Time.now.strftime("%Y%m%d%H%M%S")
 - puts t
 %input.hidden{:type=>"text",:name=>"zaman",:value=>"#{t}"}
 -puts "adfasdf : " + @asdf.to_s
 -puts "asdf"
 -puts "asdf : " + @asdf.to_s
 -puts session[:ewer]
 -puts session[:zxcv]
 -puts strtodigest
 -digest = Digest::SHA1.base64digest(strtodigest)
 -puts digest
 -#%input{:type=>"text",:value=>"#{strtodigest}"}
 -#%input{:type=>"text",:value=>"#{digest}"}
 %input.hidden{:type=>"text",:name=>"ozet",:value=>"#{digest}"}
:javascript
  $('form').submit();
-puts "End Of Haml"

I have a haml like above and i am using it in a Sinatra application. When i run my app

haml :problem_haml

Every single ruby command works perfectly, but haml does not render anything. Not even a single line, yet every ruby command starts with “-” works absolutely perfect? What could be the cause?
Please do not answer “because hidden class hides everything”, it is not about css hiding, literally not even a single byte returns from server.

Edit:

I said the application is a sinatra application before, but it is actually a Padrino application. While padrino is only a few sinatra applications that run inside a main sinatra application and more people knows sinatra, i said sinatra to make the question simpler.

Also here is the code that calls haml,

def get3DSecure(ccname,price,skul,ccno,cvc)
    puts "#############################################"
    puts "get3DSecure function called"
    puts "#############################################"
    @ccname = ccname
    @price = price.to_s + "00"
    @skul = skul
    @ccno = ccno
    @cvc = cvc
    session[:name] = ccname
    session[:xmltosend] = makeXmlFor3D
    session[:sipbil] = UUIDTools::UUID.random_create.to_s.delete!("-")
    session[:sesbil] = UUIDTools::UUID.random_create.to_s.delete!("-")
    session[:skul] = skul
    session[:price] = price
    session[:ccno] = ccno
    session[:cvc] = cvc
    puts "#############################################"
    puts "get3DSecure function near end, render starts"
    puts "#############################################"
    render :adsecure,:layout=>:main
  end

It also writes the puts commands to console without any problems.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T09:56:42+00:00Added an answer on June 14, 2026 at 9:56 am

    I have find out that render or haml methods does not do return. So if you are in middle of your function, your should do

    return haml :problem_haml
    

    It fixes the problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

<?xml version=1.0 encoding=utf-8?> <?xml-stylesheet type=text/css href=tibu.css?> <THREADS> <thread address=0011> <sms msgBox=inbox date=2012-10-30T06:49:36.529Z locked=false seen=true
I have model: # encoding: utf-8 class Tag include Mongoid::Document field :name, type: String
I'm trying to use eclipse encoding UTF-8, for polish characters. Unfortunately, I still have
Consider the following Ruby code analyzing a three-byte UTF-8 string: #encoding: utf-8 s =
Suppose I have this code: String encoding = UTF-16; String text = [Hello StackOverflow];
i was using Iconv library on Ruby to convert encoding from UTF-8 to UTF-32,
I am dealing with some unicode strings, which I am encoding using utf-8 whenever
If I'm using utf-8 encoding for a character set that would use the character
I have a problem with utf-8 encoding in primefaces 3. but with this (adding
I'm trying to use UTF-8 encoding for the Spring application I'm developing but I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.