Skip to content

Category Archives: Ruby

Ruby: Can’t modify frozen string

Workaround: _use_me = frozen_string.dup

Share

Rails RJS redirect

page.redirect_to :action => ‘thanks’, :p1 => @g_resp.params["_code"], :p2 => @r_id

Share

textbox image alignment problem

Problem: [code] text_field(:member, :dob,:size=>"20", :maxlength => "50",:tabindex=>"22") img_tag [/code] Fix: [code] text_field(:member, :dob,:size=>"20", :maxlength => "50",:tabindex=>"22") img_tag {:style="position:absolute"} [/code]

Share