-#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.