Archive

Archive for June, 2011

RUBY ON RAILS : usefull Functions

date formating .

<%= myclassobj.close_date.strftime(“%m/%d/%Y”) %>

<%=qest.created_at.strftime(“%B  %d, %Y”)%>

css applaying at text field

<%= f.text_area :description , :class=>”myclass”  %>

 

 

alternate style sheets

<tr    bgcolor=”<%=cycle(“#e6e7e8”, “#fff”)%>”  >

Advertisements