Giving 'TemplateError' can't convert String into Integer
Posted
by
Gagan
on Stack Overflow
See other posts from Stack Overflow
or by Gagan
Published on 2011-03-09T07:50:00Z
Indexed on
2011/03/09
8:10 UTC
Read the original article
Hit count: 261
ruby-on-rails-3
Hi,
I recently transfered my app from Rails2 to Rails3.
The code in 'app/views/distribution/index.html.erb' is like :-
<div style="padding-bottom:10px; padding-left:0px;float:left;display:<%= (!session[:album][@artist.id.to_s].empty? && !session[:album][@artist.id.to_s].nil?)?'block' : 'none' %>" id = "make_payment_enabled">
<%= link_to 'Make Payments',{:action => 'pay', :album=>@album.id}, :class => "button" %>
</div>
It's giving me TemplateError on line :-
<div style="padding-bottom:10px; padding-left:0px;float:left;display:<%= (!session[:album][@artist.id.to_s].empty? && !session[:album][@artist.id.to_s].nil?)?'block' : 'none' %>" id = "make_payment_enabled">
How to resolve the problem ?
© Stack Overflow or respective owner