Monthly Archives: January 2011

Ruby comment

single-line comment begins with the # character and ends at the end of the line. Eg # This line is ignored by the Ruby interpreter sum(10,20) # Print the sum of 10 and 20 Multi-line Comments A multi-line comment begins … Continue reading

Posted in rails | Tagged | Leave a comment

Rails solutions:5

start_form_tag    problem solution:- start_form_tag and end_form_tag are deprecated The old, deprecated way <%= start_form_tag %> …stuff… <%= end_form_tag %> The new, supported way <% form_tag do %> …stuff… <% end %> with full stuff <% form_tag ‘at’,:method => :get do … Continue reading

Posted in rails | Tagged | Leave a comment

Rails Solutions No:4

How to  escaping sensitive characters in rhtml page? A:- rails  “h” method eg <%= h(” i say< do more”) %> here the ‘<‘ character will be escaped Klairvoyant Infosolutions likes Klairvoyant Create your Like Badge for klairvoyant

Posted in rails | Tagged | Leave a comment

Rails Solutions No:3

How can I find rails version number ? gem list. Klairvoyant Infosolutions likes Klairvoyant Create your Like Badge for klairvoyant

Posted in rails | Tagged | Leave a comment